added support for multiple simultaneous database types