Only load mongodb resources once