Perform a case insensitive DB name comparison for SQL Server

SQL Server is generally case insensitive, however the database name comparison here is case sensitive.

This patch changes the database name comparison to be case insensitive in order to match the behavior expected by SQL Server users.