functions now return records. Add print-db function.