<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fetch_profile_data_from_file():
 """ takes profile data from file and saves in the profile_data DB """

    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