Fixed create table query