Added MySQL functionality