Fix unique constraint on subscriptions