work on PDO result set