Adding initial attempt at table definitions and database handler.