Major refactoring and got sql_variant data scripting for all types.