attemped to fix issue with display of database error message