Server updates Notifications table when sending notification
Cleaned up old code