create table and insert handled