implemented some db access methods.  stubbed a couple more