A Generalisation of Entity and Referential Integrity in Relational