changing mongodb conn test code to include external config file parser.