Changed mysql persistance store to handle disconnects

Adding Connection lost handling, which is pretty common in mysql.
As described in https://github.com/felixge/node-mysql#server-disconnects