Adapt throwIfSimilarSubscriptionExists to new database queries