PB Add minweight to logic to create VSM file. Set DB connectionString from configuration file