if Alberich.user_group_class.constantize.table_exists?
      Alberich.user_group_class.constantize.all.each do |ug|
        unless Alberich::Entity.where(:entity_target_type =>
                                        Alberich.user_group_class,
                                        :entity_target_id =>