Added PDO error code

Addition to make recovering from a PDOException easier.