This is a very simple class that can be used to generate CSV files from MySQL query results. It can execute a MySQL database query and use the results to format the contents of a CSV file. The CSV file contents is returned as a string, so it can be served for download or stored in a server file.