From an architecture standpoint, this does not belong here and we have to stop doing switching on dbtype. Anyone else wanting to do case insensitive matching will have to repeat this code.