add table relations pgsql