Improve Disconnected MySQL management

If the MySQL server becomes disconnected, it will automatically be
attempted to reconnect it.