replace insert to ctas

replace insert to create table as select