Updated makePin method to the new db connection syntax. Eliminated some unused includes.
Fixed typo in makePin method
Updated deletePin method to the new db connection syntax.
Updated purgePin method to the new db connection syntax. Added some comments with documentation