Add database indexes to queried and ordered message columns