Added method to store profiles in Mongo