def query_long_descr(database, dict_name):
    """Return long description for a given dictionary."""
    curs = database.cursor()
    sql = '''
        SELECT DI_LONG_DESCR
        FROM DICTIONARIES
        WHERE DI_DICT=?
        '''
    curs.execute(sql, (dict_name,))
    results = list(curs)
    if len(results) == 0:
        return None
    return results[0][0]