Adding back a primary key to notification settings

Fixes #212
Merge pull request #213 from TheSerapher/issue-212

Adding back a primary key to notification settings