First pass at fixing SQL Server 2000 pagination

This is an attempt to restore SQL Server 2000 pagination while reusing the existing local variables.
Unfortunately, `format()` uses the `{}` syntax, but IBM's DB2 uses that as quoting delimiters.  Thus, when you're building up a string with existing DB2-quoted table names and columns, `format` tries to look into the passed in dictionary for all the existing DB2-quoted fields.