add comments, update getCreateTableSql() and add commits to upgrade SQL