Could we use the DDL feature here? I will try it out, I fear that it won't work because of the object records extends tablequery way of doing things. If it is a good way of doing it, I should make sure it works in the DDL