Finding the current DB type in a Mango plugin

Adam Tuttle has written a very informative post explaining how you can find the database type of the current Mango install when developing plugins. Knowing that would be important if your plugin wants to store data in the database or retrieve data stored by Mango itself.