Added MySQL Reconnect Feature

If the connection times out or gets lost, this will prevent "MySQL server has gone away" error.