database integration test