adding sub_id to query for installed measures to overwrite