Re-wrote the mapping of data selection to the record of ftmachine or componenlist stored in the ms as virtual column. The selection now includes scannumber and stateid
This is labelled as version 2 of the virtual model vis. version 1 of the model vis is still supported for reading. Once support is removed the code can cleaned and reduced.