Adding formatting to generate files for LOAD DATA in MySQL