Added pin title to viewpinmodal

Viewpinmodal now has the correct title displayed at the top, along with
a close button. I added the query used into queries.php.