added check if node name is not in the db for get_node_by_name