update media & file entity
improved insert view gen module to delete old variables on cron or uninstall