move pgsql statements to oc_chef_authz
chef_db: fetch_org_id_authz to fetch_org_metadata
update tests for chef_org_metadata changes