Adds re-connect logic to handle MySQL socket timeouts. Dantom.DB should really do this, instead of passing them on to us.