Fix for posts/thread postcount/first_post_id metadata.

* I was incorrectly storing metadata in the indexes db. This has been
fixed and post count and first post id for threads are now in the
metadata database.