reconnect on mysql connection lost