Minor fixes in SQL Mode

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