Added additional checks for notifications handler
Changed BIGINT variables to VARCHAR