Fixed new files query for updateDisplayedFields; Added applyDisplayFieldsChanges method to insert or update display fields after generation is done