Changed the relation User to UserPreferences to a OneToOne bidirectional relationship, created functions to fetch subscribed users and unsuscribed users