Add replay notification script

Add a script which allows to replay all events in order to create
Notification entries to the database which do not exist yet.

Furthermore add uniqueness constraint to the notification database
table, which makes sure that only one notification exists in the
database for each event and user.