use more generic inNamespace method to move the PDO definition to a namespace.