queryrulemanager framework for query ruledynamic update support