Updating sessionization query