Added MySQL error outputs