A Database is a system for authorized collection of data. It allows for efficient storage, retrieval, and modification of data.
Web servers are typically "stateless" (they forget everything after a request). Databases provide persistence (memories that last).