add newline char at end of last line in links mysql for better concatation of files