support legacy behaviour
split the insert statements into chunks when exporting

easier on the import scripts
Optimise memory usage of setup
delete file once it's read
get rid of warnings