Added reconnect option

Added reconnect option to mysql2 in order to survive when the server goes away and comes back later.