building out the ORM to actually interface with the DB