PDO generate