correct PDO query exception handling
Merge pull request #15 from Serjick/pdo

correct PDO query exception handling