Fix DB tests.