added little code to check mysql connection status