add indexes and regen schema