add table to index