I am using Python mysql.connector to connect to a WordPress database and retrieve Woocommerce sales information to create a sales report. Below is some of the code I have wr