configure mongo properly