Modified the dbmanager to work with the new scheme and ensured that it fails gracefully when a record is not found
Simplified the structure used to represent the records in the database