updateRegionsMetadata()                                # DB dirty work 5 columns
            updateRegions(entriesToInsert)                         # populate the columns 18 columns
            closeCSVFiles()                                        # Without a flush() will not get values to csv file
            
        # end of if conditional for totalEntries
        
        else:
            print("no matches at all") # totalEntries = "0"
          
        
    # outer try call for api connect    
    except ConnectionError as e:
        print(e)
        print(e.response.dict())
        
    if api.error():
        print(api.error())
    else:
        print("script completed normally")
        
    print("Current version of ebaysdk is ", response.reply.version)    
    print(start_time_stamp.strftime("%m/%d/%Y, %H:%M:%S"))
    end_time_stamp = datetime.datetime.now() # returns an object
    print(end_time_stamp.strftime("%m/%d/%Y, %H:%M:%S"))