Fix broken tests in db.