Export mysql table to csv with table header