Move notes table DDL string creation to pure fn

The function create-notes-table-ddl is a pure function that serves as
the definition the layout of the notes table. Similar functions for
other tables will be defined in the future, and these functions will be
the reference for defining the entire database schema.