Class to convert a mySQL query to a CSV File