updated the VarService to support mssql