update the mongo config