done table creation and indexing