better db error messages