update to use one query for only set one attribute value