update mongodb document