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.
oh, never mind, I see that the using function is actually a method so moving this probably doesn't make sense.