code: def fetch_profile_data_from_file():
      
      with open(SEARCH_PROFILE_DATA_FILE, 'r') as fin:
          profiles = json.load(fin)
  
      counter = 0
  
      log.debug("-" * 5)
      log.debug("Fetching profile data from file")
  
      for entry in profiles:
          new_entry = {}
          new_entry['key'] = entry['fqu']
          new_entry['value'] = entry['profile']
  
          try:
              clean_profile_entries(entry['profile'])
              profile_data.save(new_entry)
          except Exception as e:
              log.exception(e)
              log.error("Exception on entry {}".format(new_entry))
  
          counter += 1
  
          if counter % 1000 == 0:
              log.debug("Processed entries: %s" % counter)
  
      profile_data.ensure_index('key')
  
      return
docs: takes profile data from file and saves in the profile_data DB