create indexes after loading data finishes