Tech foundations

What is a database?

In short

A database is an organized store of data that software can search, add to and update quickly and safely. Most business systems, from web shops to CRMs, keep their data in one.

A classic database stores data in tables with rows and columns, like many linked spreadsheets with strict rules. It makes sure many users can write at the same time without mixing things up, and it keeps the data safe if something crashes.

Mini course

3 short lessons, about 2 minutes in total

  1. Tables with strict rules
  2. Many users at once
  3. Databases and AI

Lesson 1

Tables with strict rules

Most business databases are relational: data lives in tables, such as customers, orders and products, and the tables are linked by ID numbers. Each column has a type, such as date or number, so nobody can type 'next Tuesday' where a date should be.

App or website
Database
Apps write and read data in a database, and other tools such as reports and AI read from it or from copies of it

Tap a box to open that concept

This structure makes it fast to answer questions like 'which customers bought product X this year?'.

Lesson 2

Many users at once

A database is built so that thousands of people can read and write at the same time without overwriting each other. If two people buy the last item in stock in the same second, the database makes sure only one gets it.

It also keeps a log, so that data survives a crash and can be restored to an earlier point.

Lesson 3

Databases and AI

AI connects to databases in two main ways. It can write database queries from plain questions, so a manager can ask 'how did sales go in November?' without knowing SQL. And special vector databases store text as numbers, so AI can find passages by meaning, which is the base of RAG.

  1. Customers find youHow customers and AI tools find the companySEOGEOGoogle AI Overviews
  2. AI in daily workTools staff and customers useChatbotAI copilotVoice AI
  3. Building blocksHow AI connects to data and systemsRAG (retrieval-augmented generation)AI agentMCP (Model Context Protocol)
  4. AI modelsThe models that understand and createLarge language model (LLM)Generative AIMachine learning
  5. DataCompany data, gathered and cleanedData warehouseETLData quality
  6. InfrastructureCloud, networks and systems underneathDatabaseCloud computingAPI key
Trust and rulesSecurity, law and control in every layerGDPR and AIEU AI ActAI guardrails
Where Database sits in a company's AI setup

Give AI read-only access, and check its queries before trusting the numbers.

An everyday example

When you look up your order history in a web shop, the site asks its database for every order linked to your customer number.

How companies use it

Companies use databases for customers, orders, stock, bookings and every other record their systems depend on. AI tools increasingly read from them to answer questions.

Frequently asked questions

How is a database different from Excel?

A database handles millions of rows, many users at once and strict rules for what may be stored. A spreadsheet is easier but breaks down at scale.

What is SQL?

SQL is the most common language for asking a database questions, such as 'all orders from Gothenburg last month'.

Can AI query a database?

AI can query a database by turning a plain question into a database query, as long as it only gets read access and the answer is checked.

In depth: Database

The full picture, about 4 minutes of reading

An organized store for data

A database is an organized store of data that software can search, add to and change quickly and safely. Almost every business system keeps its information in one: the web shop's orders, the CRM's customers, the booking system's appointments and the accounting system's transactions.

You rarely see the database itself. You see the screens of the program that uses it. But every time you search for a customer, save an order or print a report, the program is asking its database a question or telling it to store something.

Why not just use a spreadsheet?

A spreadsheet is easy, flexible and perfect for one person working on a list. It starts to break when the data grows, when many people work in it at once, or when the data must follow strict rules. Two people edit the same file and one overwrites the other. Someone types "next Tuesday" in a date column. A formula is accidentally deleted and nobody notices. A large file becomes slow.

A database is built for exactly those problems. It can hold millions of rows, lets many users and systems read and write at the same time, enforces rules about what may be stored and keeps the data safe if something crashes. The trade-off is that it needs a program in front of it, because few people want to work in a database directly.

How a relational database is organized

Most business databases are relational. Data lives in tables, each with rows and columns, much like sheets in a spreadsheet. One table holds customers, another holds orders, a third holds products. Each row has a unique ID number, and tables are linked through those numbers: an order row stores the customer's ID instead of copying the customer's name and address.

Each column has a type, such as text, number or date, and rules such as "must not be empty" or "must be unique". This structure means each fact is stored once, in one place. When a customer moves, you change one row and every order shows the new address. It also makes questions fast, such as "which customers bought product X this year?". Those questions are usually written in SQL, short for structured query language, the most common language for talking to databases.

Keeping data safe when many people use it

A database makes sure that many changes at once do not mix things up. If two customers try to buy the last item in stock in the same second, the database lets one purchase finish first and tells the other there is nothing left. A group of changes that belong together, such as taking money from one account and adding it to another, either all happen or none do.

Databases also keep a log of changes, so the data survives a crash and can be restored to an earlier point in time. Backups, access rights and encryption add further protection. These features are why companies trust databases with records they cannot afford to lose.

Databases and AI

AI connects to databases in two main ways. First, a language model can turn a plain question into a database query. A manager can ask "how did sales go in November compared with last year?" and the AI writes the SQL, runs it and explains the result. This is useful, but the AI can misunderstand a table or a definition, so the query and the numbers should be checked, and the AI should only have read access.

Second, a special kind of database, the vector database, stores text as embeddings, lists of numbers that capture meaning. That lets AI find passages by meaning rather than exact words, which is the search step behind assistants that answer from a company's own documents. Many regular databases can now store such vectors as well.

What it means for a small business

A small business rarely needs to build or run a database itself. The systems it already pays for, such as accounting, CRM and web shop software, include their own. What matters is knowing which system holds which data, keeping that data clean, and making sure it can be reached through exports or an API, a defined way for systems to exchange data.

If important work still lives in large, shared spreadsheets that many people edit, that is a sign a proper system with a database behind it would help. And before letting an AI tool answer questions from company data, check that it only reads, that it reads the right source and that someone checks the first answers against known figures.

Curious what this could mean for your company? Book a call.

Book a call