make interval.

db done. graph draws, logicl still needs to be added. validate interval
names are unique is important