Reduced number of SQL queries needed to display board pages.
Merge pull request #91 from ernstchan/bugfixes

Reduced number of SQL queries needed to display board pages.