Improve driver exception code conversion

Drivers should match unique driver-specific error codes instead of substrings in error messages where possible. This PR replaces most of the error string matching. Additionally many more error codes are were added to MySQL.