finished up database

can now retrieve from db