Added MySQL Reconnect Feature

If the connection times out or gets lost, this will prevent "MySQL server has gone away" error.
Merge pull request #154 from ClaudiuHKS/master

Add MySQL Reconnect Feature