changing mongodb connection