update indexes on update