enhanced mysql connector database error handling as requested
in GratiaWeb-48
updated version and comments on spec