resolve db error