Changed the PUT method to $set the document as opposed to replacing