update files and DB