create table and insert