Store the parent directory, not the file path, remove databases