Fix unique constraint for subscriptions