Move my pdo library code into a class.