STI support reindexing and searching

This commit removes previous change made in #163 fixing #190 and supersedes #194
It also adds reindexing support for STI tables and supersedes #197