continued work on changing functions called by virg_sql to support virg_vm_set.