create a script that extracts the data from dbHist_Sales database and function that will create a CSV file if the extract button is clicked
test the created query and function, an error is encountered, check the cause of an error for fixing and successful extraction of data
continue to test the web application for the added query and function