Added DatabaseDirectoryManager, supporting classes, and unit tests