text: import sciencebasepy
  import pylinkedcmd
  from joblib import Parallel, delayed
  import tqdm
  from sqlalchemy import create_engine
  import pandas as pd
  import os
  
  cmd_sb = pylinkedcmd.pylinkedcmd.Sciencebase()
  cmd_isaid = pylinkedcmd.pylinkedcmd.Isaid()
  
  orgs = cmd_isaid.get_organizations()
  print(len(orgs))
  
  org_summaries = list()
  
  def accumulator(identifier):
      org_summary = cmd_sb.get_sb_org(identifier)
      if org_summary is not None:
          org_summaries.append(org_summary)
  
  
  Parallel(n_jobs=4, prefer="threads")(
      delayed(accumulator)
      (
          identifier
      ) for identifier in tqdm.tqdm([o["organization_uri"] for o in orgs])
  )
  
  if len(org_summaries) > 0:
      pg_user = os.environ["PG_USER"]
      pg_pass = os.environ["PG_PASS"]
      pg_host = os.environ["PG_HOST"]
      pg_port = os.environ["PG_PORT"]
      pg_db = os.environ["PG_DB"]
  
      pg_engine = create_engine(f'postgresql://{pg_user}:{pg_pass}@{pg_host}:{pg_port}/{pg_db}')
  
      pd.DataFrame(org_summaries).to_sql(
          "organizations",
          pg_engine,
          index=False,
          if_exists="replace",
          chunksize=1000
      )
  