More speed imporvements and fixes

Improving MySQL fulltext search speed
Fixes bugs that last commits had with post counts.