def __row_to_dict(row: list, column_names: list) -> dict:
    """
    Converts a row from the database to a dictionary

    Parameters
    ----------
    row : list
        Data to convert
    column_names : list
        Ordered list of column headers

    Returns
    -------
    dict
        Row data, as dictionary
    """
    row_dict = {}
    for column, data in zip(column_names, row):
        row_dict[column[0]] = data

    return row_dict