Reworked to generate SQL script from imported data

generate SQL instead of connecting to DB directly and reuse
StringExtensions class for whitespace removal