Updated the notifications-related tables

Corrected unique key in notificationTypes table
added foreign key in notifications table