def append_gene_summary(main_curr, chunk_db):
    """
    Append the gene_summary from a chunk_db
    to the main database.
    """
    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)
