Rework mssql driver to support the new iterator model