db error fixed