postgresql references vs foreign key