added mock db class to stub out database from test