Index feature beta. Also crashfix

Crashfix of tables, that were filled, when their size=0