Basic MongoDB update procedure based on condition.