def gene_catalogue(db):
    """Get list of genes from database."""
    cur = db.cursor()
    cur.execute('SELECT entrez, gene '
                'FROM genes;')
    results = cur.fetchall()

    # format into single list
    genes = []
    for item in results:
        genes.append([item[0], item[1]])
    return genes