CREATE TABLE query fixed