anchor.diff:                               {keypos, 2},
                                {estimated_no_objects, EstSize}]).
   -define(ORG_SPEC(Preloaded, Active, Complete),
  -        {org, '$1', '$2', Preloaded, '_', Active, Complete, '_'}).
  +        #org{guid = '$1',
  +             name = '$2',
  +             preloaded = Preloaded,
  +             read_only = '_',
  +             active = Active,
  +             complete = Complete,
  +             worker = '_'}).
   
   -record(state, {couch_cn,
                   preload_amt,
  
positive.code:      {chef_otto, chef_otto:connect()}].
  
  list_unmigrated_orgs() ->
      Spec = {org,
              '$1',                               % guid
              '$2',                               % name
              '$3',                               % preloaded
              '$4',                               % read_only
              '$5',                               % active
              true,                               % complete
              undefined                           % worker
             },
      dets:match_object(all_orgs, Spec).
  
  route_orgs_to_erchef_sql() ->
  
negative.code:     end.
  
  find_org_by_worker(Pid) ->
      Spec = (wildcard_org_spec())#org{worker = Pid},
      case dets:match_object(all_orgs, Spec) of
          [] ->
              error_logger:error_msg("No org found for pid ~p~n", [Pid]),
  