Fix mongo connection