Fixed updatepart
added jsonpatch to mongo
merged from msater
Added unsafe update part