Added database integration tests.