added support for multiple mongoose connections. Added option to remove mainDb if not needed.