update indexes on every save