How do I create a comma separated value (.csv) or Excel file for download after I queried the SQL database? ...