Modify update() for treatment of $where