Update db error message and remove whitespace