updated table creation script