records: enhance the API to create empty records
Signed-off-by: Esteban J. G. Gabancho <egabancho@gmail.com>