some errors in config.
update working report on mass insert.
changes to flush script
start bugfixing - see todo