Added support for 2 different db connections