Fixed SQL query to create table