Started refactor of mssql dialect