trying to fix db error