added post data to mongodb