Fixed a bug with PDO exception handling
Fixed a few minor issues