Renamed caching by attr_id to cache_tag_id
Added lookup to get a list of all attributes for a given entity_type_id