fix test for db