Working generation and usage of INSERT script. Still needs to be reviewed regarding rollback, autocommit, result support, etc.