Added additional checks for notifications handler
Change BIGINT variables to VARCHAR