Fix mongo URI construction