Relational model working correctly