type_val: update to handle PARAM_SET from the db