Updating function: collection.update(cid, upkeyobj)