implement stubbed out database functionality