create table dynamically