added database integration test