def verify_columns(api_cols, db_cols):
    """
    Checks if API columns match with DB columns and raises exception if mismatch
    :param api_cols: List of columns names from API call data
    :param db_cols: List of columns names to compare with
    """
    for i, val in enumerate(api_cols):
        if val != db_cols[i]:
            raise Exception(
                "Alpha Vantage API columns and database columns mismatch. API: '%s' and DB: '%s'"
                 % (val, db_cols[i]))
