Correct indexes. Trigger DB update