Merge pull request #87 from snakevil/master

Fixed a few issues which exposed in exercises.
Resolved a coding issue on retrieving `lastInsertId()' of PDO instances.