update changes in db and file-folder structure