Added nodes function.
Implemented path traversal in database.