Fix database tests.