walk folder structure and save subdirectories to db on mediadir creation