brought config of the mongoclient out into the applicationContext