Updating glitches in pages

Database seems to link in correctly now. Updated logic for displaying
posts.