Download a table from a MYSQL database to a file (cvs format)