minor fixes

minor fixes

* index.html included sql.js twice
* optimize .tableName syntax check