switch to using a mysql pool

With a Pool, when a connection has a timeout error, it will simply close the connection and remove it from the pool. A new connection will be made when it is needed.
Heh, I have forgotten to release so many connections back to so many pools that I'm now pretty paranoid about this :-)