Store the directory name with the mongo record when saving