Adding back a primary key to notification settings

Fixes #212