Now virtually all MySQL exceptions are catched and logged
 correctly