correctly quote integer index.
assure that notifications always contain id, created_at and message.
assure stream_id is always present.