Fixed table creation script