Updating SQL for table creation