Revert "directory: Add a get_path." and "new db: Purge directory->path."

This reverts commit e34a0ad8b420dcf910dcd798fdfa5ecb8b5e4e87 and b6baa756d9cc05cda7b4b3787ce0a68a205d8ea1.

Alright, this approach isn't good enough, let's try again.