def _countries_to_dict(ls: list) -> dict:
    """
    convert countries db in the form of a list to a dict
    :param ls: list
    :return: dict
    """
    res = dict()
    for i in ls:
        res[i[0]] = i[1]
    return res