support generate initTable, initView. some other improvement