add: returns error messages from postgres