putting dbname on the error reports