fixed bug with forum SQL
made some minor optimizations to reduce queries
did some optimization on blog queries
fixing forum API bug issue #55