Notes now save in SQLite db + bug fix

Fixed syntax error with last commit.