DB: add option to filter error logs by state_prev
Web: add previous state filter to error summary