use mongo connection instead of mongoclient and test it.