def METHOD_NAME(contigs_db):
    aa_seqs = contigs_db.get_table_as_dataframe('gene_amino_acid_sequences')
    aa_seqs = dict(zip(aa_seqs['gene_callers_id'], aa_seqs['sequence']))
    gene_calls = contigs_db.get_table_as_dataframe('genes_in_contigs')
    progress.new("Adding coding type to each gene call", progress_total_items=gene_calls.shape[0])
    coding_num = 1
    noncoding_num = 2
    call_types = coding_num * np.ones(gene_calls.shape[0]).astype(int)
    for i, gene_call in gene_calls.iterrows():
        if i % 5000 == 0:
            progress.update("done %d of %d" % (i, gene_calls.shape[0]))
            progress.increment(increment_to=i)
        if not len(aa_seqs.get(gene_call['gene_callers_id'], '')):
            call_types[i] = noncoding_num
    gene_calls['call_type'] = call_types
    progress.update("Update `genes_in_contigs` table ...")
    contigs_db.drop_table('genes_in_contigs')
    contigs_db.create_table('genes_in_contigs', genes_in_contigs_table_structure, genes_in_contigs_table_types)
    contigs_db.insert_rows_from_dataframe('genes_in_contigs', gene_calls)
    progress.update("Update `self` table ...")
    contigs_db.remove_meta_key_value_pair('version')
    contigs_db.set_version(next_version)
    contigs_db.set_meta_value('external_gene_calls', 0)
    contigs_db.set_meta_value('external_gene_amino_acid_seqs', 0)
    contigs_db.set_meta_value('skip_predict_frame', 0)
    progress.end()
    return contigs_db