Update class of $query variable.