MySQL connection, like others but only occasionally