refactored to abstract out mongo calls from ProfileService for test mocking