Use a notification counter as a unique notification id

I would generally expect the current value in the DB to be the last used ID, which we'd increment before the notification.