Play nice with idle connections for mysql