modified table creation script