Allow PDO to gracefully reconnect if mysql goes away during a query