Run mySQL command and export restult as CSV in a file