If it were not for databases, every page you visit online would be an actual page stored on a server's hard drive. The performance would suffer significantly, and the space required to store all the individual pages would be huge. Could you imagine just for one second, a website such as Facebook® having all its pages stored on hard drives? You think their data centers are massive now. They would be even bigger and would have more of them.
A database allows you to maintain a static webpage layout that pulls data from a database. An example using ASP Classic.
Let's say the top code here is from a database, and these are the values.
This type of technology lets you create a custom website template that you never have to touch again. When a new user joins your site, all their data will be rendered to the page without any further input from the developer.