Adding database code for tags

Changes:
- Added functions to work with tags
- Changed database blog post functions to work with tags
- Fixed get-posts so it calls map upon get-post, rather than collecting post maps recursively
- Fixed a bug where page title wasn't being correctly created for individual post pages