Added a macro do-fields to iterate over the fields of a record in the db
Modified (dump-db) to use the new do-fields macro