triggers.sql. in readNotifications(). fixed retVal comparison with null bug.