add nodes from db