Update SQL

Update SQL for notification support