db_ido: Add cleanup for history tables.

refs #4567
db_ido: Update documentation for cleanup.

refs #4567