Sorted out db tests.