Reconnect to the database on every query to get around low wait_timeout MySQL configs