Glossary of web design terms you should know

Create your website in 60 seconds with AI. Start for free!

Generate a website
Back to glossary

Database

A database is an organized collection of information stored electronically, so it can be retrieved, updated, and managed with ease. It’s like a digital filing cabinet, but one that can hold millions of records and serve hundreds of users simultaneously. Unlike a spreadsheet, which was built for a single user, databases are made to scale. They sit at the heart of nearly every app, website, and business system you interact with on a daily basis.

What is a database?

A database is a structured set of data designed to support fast and reliable data management stored on a computer system, so it can be accessed when needed. It's different from saving files to a hard drive; databases organize data so it's easy to search, sort, and pull specific records on demand. Most of what you interact with online is powered by a database running behind the scenes, whether it’s your bank balance, order history, or social feed.

How does a database differ from a database management system?

A database is simply the collection of data, from the actual records to tables and files, all stored together. A database management system (DBMS), on the other hand, is the software on top, allowing users to create, manage databases, and manipulate data as needed.

Without a DBMS, you'd have raw data with no real way to query, update, or protect it. You can think of the database as a library and the DBMS as the librarian who knows where everything is and controls who can check out things.

What is database software (and how does it work)?

Database software is also a DBMS, as it’s formally called. It is a tool that enables you to create, interact with, and access database services, often supported by database administrators who let things run smoothly.

It handles everything from storing records and running queries to enforcing access rights. For instance, when you ask a database a question, such as "Show me all orders from last week," the software processes that request, pulls the relevant data, and returns it.

Popular examples of database software include:

  • MySQL
  • PostgreSQL
  • Microsoft SQL Server
  • Oracle Database
  • SQLite

Advantages of using a database in software development

Databases provide developers a solid, centralized place for managing data, from enterprise platforms to mobile apps. They enable multiple users to work with the same dataset simultaneously without conflict, while supporting strong data consistency across the board.

Built-in features, such as integrity rules and database access controls, cut the risk of bad data or unauthorized changes slipping through. As web and mobile apps grow, whether it's experiencing increased users, records, and requests, database management scales in a way that spreadsheets can't match.

Types of databases

Not all databases are built the same, as different problems call for different data structures. Knowing the difference helps you pick the right tool instead of forcing the wrong one to do a job it wasn't made for.

The seven different kinds of databases are as follows:

1. Relational database systems

Relational databases store structured data in tables with rows and columns, making them a go-to for financial records or customer information. Examples of relational databases include tools like MySQL and PostgreSQL. You query these using Structured Query Language (SQL).

2. Hierarchical databases

One of the oldest known navigational databases, hierarchical databases organize data in a parent-child tree structure where each record has one parent. They work well for file systems or org charts, but fall short when records need multiple parent records.

3. Network databases

Network databases are a step up from hierarchical ones, as they allow records to have multiple parent records, which makes them better at handling interconnected data. They're rarely used today, but they laid the groundwork for more modern database models.

4. Graph databases

Graph databases store data as nodes and edges, making them a natural fit for tracking relationships for people, places, or things. These types of databases are often seen on social networks and recommendation engines.

5. Key value databases

These store data as key-value pairs, where each unique key maps directly to a value, similar to how the dictionary pairs a word with its definition. They're fast and simple, often used for caching or session data in mobile apps and web platforms.

6. Document-oriented databases

Document databases store data in formats like JSON or XML, which allows for flexible schemas and nested values. They're a strong fit for content management systems or any app that works with unstructured data that often changes in shape.

7. Object-oriented databases

These store complex data types as objects, mirroring how object-oriented programming languages already represent information in code. They work well when your app's data structures are too complex for a standard relational setup.

Database design and architecture

Good database design begins with understanding your data, what it looks like, how it connects, and how it'll actually be used. A database schema and a well-thought-out data model help in laying out the structure: tables, columns, data structures, and the relationships between them.

Conversely, a database with poor design early on, whether it’s due to unclear relationships or weak structures, may experience slow queries, duplicate data, and hard-to-fix inconsistencies later.

Performance, optimization, and scalability

One of the critical elements of a database is its setup: while it may run fine with just thousands of records, it may not perform well once it grows to a million. To ensure performance, optimization, and scalability, a database should have these four features:

1. Indexing

Indexes are one of the first things you reach for when querying data starts to slow down. Instead of scanning every row in a table, the database jumps straight to the relevant records, which makes data retrieval faster.

2. Query tuning

Writing a query that works isn't the same as writing one that works well. Tuning means rewriting complex queries so the database does less unnecessary work, which adds up quickly when you're dealing with large datasets.

3. Caching

Caching stores the results of frequent requests in memory so the database doesn't have to run the same query. This reduces pressure from database servers during high-traffic periods.

4. Distributed databases

When a single server can't keep up, a distributed database spreads data across multiple machines so no one point becomes the bottleneck. It's the backbone of most large-scale apps that need to stay fast and available, regardless of the sudden traffic spikes.

Data security, data integrity, and modern trends

Databases hold some of the most sensitive information in an organization. That said, keeping that information accurate, protected, and accessible is a job that never stops.

Here's a breakdown of what that looks like across three areas:

1. Security

  • Database access controls
    Access controls determine who can view or change data, and keeping that list tight is the first line of defense against unauthorized access. Without them, sensitive data is one compromised account away from a serious breach.
  • Encryption
    Encryption scrambles data so that even if someone acquires it, they can't read it without the right key. It covers data both in storage and in transit, which are two different points of exposure.
  • Audit logs
    Audit logs maintain a running record of who accessed what, what has changed, and the time when that happened. While they can be used for prevention, they focus more on accountability and are required for regulatory compliance, such as HIPAA and GDPR.

2. Data integrity

Data integrity rules provide guardrails, ensuring bad data doesn't reach the database in the first place. These approaches prevent orphan records, duplicate entries, and values that break the system's logic.

3. Modern trends

  • Cloud databases
    Cloud databases have shifted the infrastructure burden away from in-house teams. Most modern apps run on them by default now.
  • Self-driving databases
    Systems like Oracle Autonomous Database handle their own tuning, backups, and security patches automatically. It frees up database administrators to focus on bigger-picture work instead of routine maintenance.
  • Data analytics tools
    Modern databases are increasingly designed with analytics in mind, providing data analysts faster access to insights without needing a separate system. As a result, the line that distinguishes operational databases from analytical databases becomes narrower.

FAQs:

What are the different database programming languages?

The different programming languages for databases include:

  • SQL: The most widely used database language since the 1970s, primarily for querying and managing relational databases
  • Python: A popular backend language used for database interactions, especially for data analysis, automation, and scripting.
  • PHP: Commonly used for server-side database interactions in web applications.
  • C#: Widely used in enterprise environments for building applications that interact with databases.
  • Object query language (OQL): Designed for querying object-oriented databases.
  • XQuery: Used for querying and processing XML-based data.

How does a relational database differ from a NoSQL database?

Relational databases store data in structured tables with defined relationships, meaning everything follows a strict schema. It’s a perfect option if you want data to be well-structured and consistent, like in financial systems.

On the other hand, NoSQL databases trade rigidity for flexibility, storing data as documents, key-value pairs, graphs, or wide columns depending on the type. In this regard, it’s a solid choice if you’re dealing with large volumes of fast-changing or unstructured data, like user activity logs or social content.

What is ACID compliance (and why does it matter)?

ACID refers to the four properties that guarantee database transaction processes without failure. It stands for Atomicity, Consistency, Isolation, and Durability, and they're defined as follows:

  1. Atomicity means a transaction is either completed or not at all; half-finished updates are not accepted.
  2. Consistency ensures every transaction moves the database from one valid state to another.
  3. Isolation stops concurrent transactions from interfering with each other.
  4. Durability means that once data is committed, the transaction holds even after a crash; this is important for data transactions that involve money, health records, or legal data.

Where do serverless databases store data?

Serverless databases store data in cloud infrastructure managed entirely by the provider. Examples of such providers include AWS, Google Cloud, and Azure.

With a serverless database, you don't configure servers or worry about capacity. The provider handles it all behind the scenes. The data lives in distributed storage systems that scale automatically based on demand. You pay for what you use, which makes it a solid fit for apps with unpredictable or bursty traffic.

What is a data warehouse?

A data warehouse is a system built for reporting and analysis, and not designed for handling live, day-to-day transactions. It pulls data from multiple sources, cleans it, and stores it in a format built for business insights.

Unlike an operational database, a data warehouse is designed for looking back, such as trends, patterns, and historical performance, and they’re all located in one place. Popular examples of data warehouses include tools like Amazon Redshift, Google BigQuery, and Snowflake.

How does data retrieval work in a data warehouse?

Retrieval in a data warehouse usually means running analytical queries across large datasets. This involves summarizing or aggregating millions of records at once. Columnar storage speeds up the process of pulling specific fields, without loading entire rows into memory.

Query engines are designed for wide, complex reads rather than the quick, targeted lookups found in transactional databases. The entire system is designed to speed up analysis, even when the data volume is enormous.

What is a hierarchical database, and when is it used?

A hierarchical database organizes data in a tree-like structure: one parent, many children, with records linked in a strict top-down chain. It's one of the oldest database models, going back to the 1960s with systems like IBM's IMS.

It works well when data naturally fits a hierarchy, such as an org chart, a file system, or a product category tree. However, it breaks down when records need to belong to multiple parents, which is why relational and other models replaced it for most use cases.

Draft your site in 60 seconds

Get an AI website made specifically for you that's free to launch.

Start for free ✨

No credit card required

Draft your website in 60 seconds

In just a few clicks, build a website with all the features you need to thrive online

Get started for free

Product

Customers

Helpful information and tools

Company

© 2026 B12. All rights reserved.
PrivacyTerms of Service