code: def schema_import(conn, dbpath):
      
      conn.execute(
          "ATTACH DATABASE ? AS source", (str(dbpath),))
      conn.execute(
          "INSERT OR IGNORE INTO profiles (name, data)"
          " SELECT name, data FROM source.profiles"
          " WHERE data IS NOT NULL")
      conn.commit()  # need to commit before detaching the other db
      conn.execute(
          "DETACH DATABASE source")
docs: Import profiles from another database.
  
      This does not overwrite existing profiles in the target database. Profiles
      in the source database that share names with those in the target database
      are ignored.
  
      :param conn: A connection to an SQLite3 database into which to copy
          profiles.
      :param dbpath: The filesystem path to the source SQLite3 database.