corrected mongo connection