Add missing indices to failures table