Generating INSERT statments to file