Files and their related database are the body and soul of a website. Files are composed of source codes and its related assets (e.g. images, pdfs, CS/JS files, etc). Database contains some of the site's settings and configurations, user records and permissions, site contents, ans so on. You need both of them in order for the website to work as intended.