def METHOD_NAME():
    log = {}
    log['count'] = 0
    log['success'] = list()
    log['norelease'] = list()
    log['noproject'] = list()
    log['nolinkedreleases'] = list()
    log['nolinkedprojects'] = list()
    print 'Getting all projects'
    projects_all = {}
    for projectRow in db.query(projects_all_query):
        projects_all[projectRow.key] = projectRow.value
    print 'Received ' + str(len(projects_all)) + ' projects'
    print 'Getting all releases'
    releases_all = {}
    for releaseRow in db.query(releases_all_query):
        releases_all[releaseRow.key] = releaseRow.value
    print 'Received ' + str(len(releases_all)) + ' releases'
    print 'Getting all license infos'
    license_infos_all = db.query(license_infos_all_query)
    print 'Received ' + str(len(license_infos_all)) + ' license infos'
    print '\n'
    for licenseInfoRow in license_infos_all:
        log['count'] += 1
        migrateLicenseInfo(log, licenseInfoRow.value, projects_all, releases_all)
        if log['count'] % 1000 == 0:
            print 'Checked ' + str(log['count']) + ' license infos'
        #if log['count'] >= 500:
        #    break
    resultFile = open('011_migration.log', 'w')
    json.dump(log, resultFile, indent = 4, sort_keys = True)
    resultFile.close()
    print '\n'
    print '------------------------------------------'
    print 'License infos successfully migrated: ' + str(len(log['success']))
    print 'License infos with not existing releaseId: ' + str(len(log['norelease']))
    print 'License infos with not existing projectId: ' + str(len(log['noproject']))
    print 'Total license infos with known known reason for outcome (might be less then total number of license infos though): ' + str(len(log['success']) + len(log['norelease']) + len(log['noproject']))
    print '------------------------------------------'
    print 'Projects without releaseIdToUsage field: ' + str(len(log['nolinkedreleases']))
    print 'Projects without linkedProjects field: ' + str(len(log['nolinkedprojects']))
    print '------------------------------------------'