def adapt_list(lst) ->str:
    """
    Adapt list entries before writing to database.

    This function takes a list and serializes it in order to
    write it to the sqlite database as string.
    """
    return '|'.join(lst)
