 
     END
 $body$;
+
+--restore concept_synonym_manual table (run it only if something went wrong)
+/*TRUNCATE TABLE dev_cpt4.concept_synonym_manual;
+INSERT INTO dev_cpt4.concept_synonym_manual
+SELECT * FROM dev_cpt4.concept_synonym_manual_backup_YYYY_MM_DD;*/
 
 -- 2. insert new concepts into concept_manual table
 create table cm_input (concept_name text,domain_id varchar(50), vocabulary_id varchar(50),

--restore concept_relationship_manual table (run it only if something went wrong)
/*TRUNCATE TABLE dev_cpt4.concept_relationship_manual;
INSERT INTO dev_cpt4.concept_relationship_manual
SELECT * FROM dev_cpt4.concept_relationship_manual_backup_2022_08_12;*/

DO
$body$

--restore concept_manual table (run it only if something went wrong)
/*TRUNCATE TABLE dev_cpt4.concept_manual;
INSERT INTO dev_cpt4.concept_manual
SELECT * FROM dev_cpt4.concept_manual_backup_YYYY_MM_DD;*/

DO
$body$
