fix: if note not set, insert null iso "null"

when create class was called with note not set, text "null" was inserted
in database, changed to null. Also $note property was missing.