A wrapper for PDO that adds connection retries, singletons and safer transactions