Added a NodeDatabase class and header.