修复语法错误和增加setTableName function