fix the db