Added reconnect to mysql

exc