fix the db error