fix db tests