Add more information to the exception message when a DB error occurs