Add foreign key references to postgres tables.