Fixed a bug with PDO exception handling
Fixed a few minor issues
Merge pull request #10 from azeckoski/master

Fixed a bug with PDO exception handling (plus some cleanups)