change the place to create table, add tt and tdb column to table