Make query checking event driven.
Change properties of tl_metamodel_attribute to be mandatory.