added indices for error-DB