Export mysql database tables to csv.