how to create relationships in postgresql