read & write nodes to db
read & write linkss to db