update mongodb connection config