If you control at least one of the objects/packages code you can always add a foreign key or a simply mapping table for many to many or one to many relations.
You can use acs_data_links for simple relationships also.
See acs-tcl/tcl/application-data-links-procs.tcl
Much simpler. If you are adding code to acs_rels you probably are making it more difficult than it needs to be.