add support to mongodb.

and read posts from mongodb