Update when relationships are saved to the database