add state table to db