A PDO wrapper that reconnects automatically and re-issues queries on receiving MySQL server timeout errors