fix PDO issues