[sql mode] Minor fixes

* index.html included codemirror.js twice
* optimize .tableName syntax check