export mongo db to posts.json