Mongodb: add the post method