db_ido: Add statehistory.

refs #4379