Add functions to create table and insert data