Merge pull request #35 from Serjick/pdo

catch exception while executing PDO query