A fully remote UK team. Send a message or a voice note and we handle the rest. Book a consultation

Where your data lives: databases explained for business owners

What a database does, how we structure your records, and what that means for reporting and exports.

Abstract dark and orange artwork for the article: Where your data lives: databases explained for business owners

Almost every piece of software we build has a database behind it. It is the part you never see, and it is also the part that shapes almost everything you can do with your system later: the reports you can run, the exports you can take, the features you can add and how well your customers' information is looked after.

This post explains what a database is, how we design one for your business, and what to ask about it. It follows on from web app architecture in plain English.

Illustration: a shield and padlock protecting dataIllustration: a shield and padlock protecting data
A shield and padlock protecting data.

What a database is

A database is a system for storing information so that it can be found, changed and combined reliably. You can picture it as a set of very well-organised tables, a bit like spreadsheets, but with strict rules about what goes where.

Each table holds one kind of thing. One table for customers, one for orders, one for products, one for appointments. Each row is one record, such as a single customer. Each column is one piece of information about that record, such as their email address.

The power comes from the links between tables. An order belongs to a customer. An order contains items. Each item refers to a product. Because those links are recorded, the system can answer questions like "what has this customer bought?" or "which products sold most last month?" without anyone copying information around.

Why not just use spreadsheets?

Many businesses run happily on spreadsheets for years, and there is no shame in that. But as things grow, spreadsheets start to show their limits.

The same information appears in several places. A customer's address is in the orders sheet, the invoices sheet and the delivery sheet. When it changes, someone has to update all three, and sometimes they do not.

Anyone can type anything anywhere. A date column ends up with "next Tuesday" in it. A price column has a note. Formulas break when rows are inserted.

It is hard to control who sees what. Sharing a spreadsheet usually means sharing all of it.

Two people editing at once can cause trouble.

A database solves these by keeping each fact in one place, checking what goes in, and letting the software decide who can see and change each piece. When we replace spreadsheets with a system, the database is usually where most of the benefit comes from.

How we design your database

Designing a database is a bit like designing the layout of a warehouse. Get it right and everything is easy to find. Get it wrong and every task takes extra effort for years.

We start with your business, not the tables

During discovery we learn what you work with: customers, jobs, products, bookings, suppliers, staff. We learn how those things relate. Can a customer have more than one address? Can a job involve several staff? Can a product come in different sizes? Those answers become the structure.

Each fact lives in one place

We aim to store each piece of information once and link to it from everywhere else. A customer's email address lives on the customer record. Orders point to the customer rather than copying the address. That way, a change in one place is reflected everywhere.

We check what goes in

The database and the back end together enforce rules. A date must be a real date. A price must be a number. An order must belong to a real customer. Required information cannot be left blank. These checks stop errors from creeping in quietly.

We keep a history where it matters

Some information should never simply be overwritten. If an order's price changes after it was placed, you probably want to know what the customer actually paid. If a record is approved, you want to know who approved it and when. We design history and audit records in where they matter. In our own client portal, for example, project updates record whether they have been approved and by whom.

We plan for the reports you need

If you will want to know how many orders came from each region, or how long jobs take on average, the information to answer those questions has to be captured at the right moment. We ask about reports early so that the data is there when you need it.

We plan for growth

We design for the amount of data you have now and a sensible amount of growth, so that adding more customers, products or years of history does not mean starting again.

Money, dates and other details

Some kinds of information need particular care.

Money is stored in a way that avoids rounding errors, for example as whole pence rather than as a fraction of a pound. That sounds trivial, but small rounding errors in totals and tax are exactly the kind of thing that causes trouble later.

Dates and times are stored with their time zone in mind, so that an appointment booked for nine in the morning in London is still nine in the morning in London when the clocks change.

Names and addresses are stored flexibly, because real names and addresses do not always fit neat patterns.

Files such as images and documents are usually stored separately from the database itself, with the database keeping a record of where each file is and who it belongs to.

Personal data and privacy

If your system holds information about people, UK data protection law applies. One of its principles is data minimisation: the personal data you hold should be adequate, relevant and limited to what is necessary for your purpose (ICO, data minimisation).

That shapes how we design. We ask why each piece of personal information is needed before adding a place to store it. We plan how long information should be kept and how it can be deleted. We make sure people only see the personal data their role requires, as described in accounts, roles and permissions.

We are not lawyers, and the legal decisions about your data are yours. Our help-centre guides on UK data law explain the basics, and for anything specific, legal advice is the right route. What we can do is build a system that makes doing the right thing straightforward.

Illustration: a web app dashboard with navigation, figures and chartsIllustration: a web app dashboard with navigation, figures and charts
A web app dashboard with navigation, figures and charts.

Deleting things safely

Deleting information sounds simple, but in a system with linked records it needs thought.

If a customer is deleted, what happens to their orders? If a product is removed, what happens to past invoices that mention it? Deleting the customer outright could leave orders pointing at nothing, or wipe out records your accountant needs.

So we decide, for each kind of record, what "delete" should mean:

  • Archive. The record is hidden from everyday use but kept, so history still makes sense. This suits products you no longer sell or staff who have left.
  • Anonymise. The personal details are removed, but the rest of the record stays. An old order can still count towards your sales figures without identifying the person who placed it.
  • Delete permanently. The record is removed entirely. This suits information you have no reason to keep, or that someone has asked you to erase where the law requires it.

We also plan who is allowed to delete what. Permanent deletion is usually limited to a small number of people, and important deletions can be recorded so there is a trail of what was removed and when. Getting this right protects both your records and the people whose information you hold.

Getting your data out

Your data is yours, and you should be able to get it out. We design systems so that key records can be exported in common formats that spreadsheets and other systems can read.

That matters in everyday use, for example when your accountant wants a list of invoices. It matters for privacy, for example when someone asks for a copy of the information you hold about them. And it matters if you ever move to another system, as explained in keeping your options open.

Bringing in data from an old system

Many projects replace something that already exists: spreadsheets, an older system, or a product you have outgrown. Moving the data across is a project in its own right, and it is worth planning carefully.

We usually:

  • Look at the existing data to understand its shape and its quirks.
  • Agree with you what should come across, what can be left behind, and what needs tidying.
  • Map each old field to its new home.
  • Run trial imports and check the results with you.
  • Plan the final move so that nothing is lost in the changeover.

Old data is often messier than anyone expects: duplicates, gaps, notes typed into the wrong fields. Finding that out early is far better than discovering it on launch day. If moving data is part of your project, it should be in the scope of works.

Illustration: data kept in step between two storesIllustration: data kept in step between two stores
Data kept in step between two stores.

Backups

A database holds the memory of your business, so it needs to be backed up. Backups should be regular, stored somewhere separate from the live system, protected, and tested by actually restoring them from time to time. A backup that has never been restored is a hope rather than a plan. Our post on backups and recovery explains our approach.

Questions worth asking about any system

You do not need to understand database design to ask useful questions:

  • Can I export all my data, and in what format?
  • What happens to a record's history when it changes?
  • How long is personal information kept, and how is it deleted?
  • Who can see which information?
  • How is the data backed up, and when was a restore last tested?
  • If I want a new report next year, will the information be there?

Clear answers suggest someone has thought carefully about your data. Vague ones are worth following up.

In short

A database stores your business's information in organised, linked tables, with each fact kept in one place and checks on what goes in. Good design starts from how your business works, plans for the reports and growth you need, treats money, dates and personal data with care, and makes it easy to get your data out. You will rarely see it, but you will feel it every day you use the system. If you would like to talk about the information your business runs on, get in touch.