adding 'sum' of attributes for all cycles
using bool_or instead of greatest
getting is_pol_group for free from join to entityattribute above, use it to set is_org
[#1227] adding new columns to org metadata tables
is_org and is_pol_group added to non-tmp tables