update index with messages