beginning implentation of database functionality.