DB IDO: Set is_connected=1 on identity==node.

Refs #5636
DB IDO: Add endpoint id to history tables. (WIP)