add table relations