Used a separate flag for the connected property. Initial implementation (checking if MYSQL is null) would crash the server.