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

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