update i2b2hive.crc_db_lookup SET C_DOMAIN_ID = '$I2B2_DOMAIN_NAME' WHERE C_DOMAIN_ID = 'i2b2demo';
UPDATE i2b2hive.im_db_lookup SET C_DOMAIN_ID = '$I2B2_DOMAIN_NAME' WHERE C_DOMAIN_ID = 'i2b2demo';
UPDATE i2b2hive.ont_db_lookup SET C_DOMAIN_ID = '$I2B2_DOMAIN_NAME' WHERE C_DOMAIN_ID = 'i2b2demo';
UPDATE i2b2hive.work_db_lookup SET C_DOMAIN_ID = '$I2B2_DOMAIN_NAME' WHERE C_DOMAIN_ID = 'i2b2demo';
UPDATE i2b2pm.pm_hive_data SET DOMAIN_NAME = '$I2B2_DOMAIN_NAME' WHERE DOMAIN_NAME = 'i2b2demo';
UPDATE i2b2pm.pm_hive_data SET DOMAIN_ID = '$I2B2_DOMAIN_NAME' WHERE DOMAIN_ID = 'i2b2';
update i2b2pm.pm_cell_data set url = 'http://i2b2-server:8080/i2b2/services/QueryToolService/' where url = 'http://localhost:9090/i2b2/services/QueryToolService/';
update i2b2pm.pm_cell_data set url = 'http://i2b2-server:8080/i2b2/services/FRService/' where url = 'http://localhost:9090/i2b2/services/FRService/';
update i2b2pm.pm_cell_data set url = 'http://i2b2-server:8080/i2b2/services/OntologyService/' where url = 'http://localhost:9090/i2b2/services/OntologyService/';
update i2b2pm.pm_cell_data set url = 'http://i2b2-server:8080/i2b2/services/WorkplaceService/' where url = 'http://localhost:9090/i2b2/services/WorkplaceService/';
update i2b2pm.pm_cell_data set url = 'http://i2b2-server:8080/i2b2/services/IMService/' where url = 'http://localhost:9090/i2b2/services/IMService/';