Thank you! I see something right away. You have a typo in your Function statement: it should be onclick, not oncllick.
You are probably better off looking at the samples which come with AppStudio. The article you are looking at has not been updated with the latest changes to SQLite Support. We will fix that.