MySql query dataset to CSV