updates files and DB