Update example with PDO error handling

Update the example in the Better persistent part to raise the error on SQL error.
Spacing correction
Merge pull request #50 from moiseevigor/master

Update example with PDO error handling