modify populatetable to accept optional indextable, delete populatetableindexfile method