update prepared query and config.