Update to the new ProfileRepository

Sorry if I missed anything, I just deleted the test that didn't seem relevant.