added some db_indexes, InheritanceManager. Fixes #1