Looking at this again, it just dawned on me.  You don't need the config object to determine the database type.  `JFactory::getDbo()->name` works just fine.