Changed POST

updated the mongo logic to update a document if it exists