def append_variant_info(main_curr, chunk_db):
    """
    Append the variant and variant_info data from a chunk_db
    to the main database.
    """
    cmd = 'attach ? as toMerge'
    main_curr.execute(cmd, (chunk_db,))
    main_curr.execute('BEGIN TRANSACTION')
    cmd = 'INSERT INTO variants SELECT * FROM toMerge.variants'
    main_curr.execute(cmd)
    cmd = 'INSERT INTO variant_impacts SELECT * FROM toMerge.variant_impacts'
    main_curr.execute(cmd)
    main_curr.execute('END TRANSACTION')
    cmd = 'detach toMerge'
    main_curr.execute(cmd)
