fix database and namespace introspection for SQL Server