Now the program uses no buggy SQL, but makes .txt files.