added database mocking