Added MySQL debug logging.