Updated the error reporting on SQL error to include the error message
.