update insert and create table