Added MySQL authentication and accounting