def append_gene_summary(main_curr, chunk_db):
    cmd = "attach ? as toMerge"
    main_curr.execute(cmd, (chunk_db, ))

    cmd = "INSERT INTO gene_summary SELECT * FROM toMerge.gene_summary"
    main_curr.execute(cmd)

    cmd = "detach toMerge"
    main_curr.execute(cmd)
Read the stack and ingest
dataset/ETHPy150Open arq5x/gemini/gemini/gemini_merge_chunks.py/append_gene_summary--crossover with--dataset/ETHPy150Open neurodata/ndstore/ingest/nelson/catmaid_nelson.py/CatmaidIngest.ingest