generating create query with ID primary key