save discovered nodes to db