Year-End Tidy-Up for Your Database Practice Projects

By the end of a year of learning you probably have a scattering of practice databases, half-finished projects and connection strings in odd places. A short tidy-up keeps your work safe, protects any accounts you created and makes next year's learning easier to start.

Step 1: find everything

Make a quick list:

Step 2: save what you want to keep

For each project worth keeping, make sure the structure and sample data can be rebuilt from files:

# SQLite: write the whole database out as SQL text
sqlite3 practice.db .dump > practice-backup.sql

For PostgreSQL, the pg_dump tool does the same; for MySQL, mysqldump. A text file of SQL is small, readable and easy to put in version control.

Step 3: remove real personal data

Practice projects sometimes collect real names or emails, for example from friends testing a sign-up form. If you are keeping a project, replace those with made-up examples. If you are not, delete the database. Personal data in forgotten files is a risk you do not need.

Step 4: check for secrets in your code

Search your projects for passwords and connection strings typed directly into code:

grep -rn "password" .

If you find one in a project you shared online, change that password, then move the setting into an environment variable. Our how-to on keeping a connection string in an environment variable shows the steps.

Step 5: shut down what you are not using

ThingWhy switch it off
Free-tier cloud databasesFree periods end; some start charging, others delete data
Local database serversThey use memory and start with your computer
Old user accounts you createdFewer accounts means fewer forgotten passwords

Check each provider's dashboard for any resources still running.

Step 6: write down what you learned

Open a text file and answer three questions:

  1. Which SQL ideas feel solid now?
  2. Which still confuse you?
  3. What do you want to build next year?

This takes ten minutes and gives you a clear starting point after the break. If JOINs or keys are on the confusing list, our learning path suggests an order for revisiting them.

A checklist to copy

Why bother?

Tidy habits are part of working with databases professionally. Developers spend real time on backups, secrets and cleaning up unused resources. Practising on your own small projects means those habits are already in place when the data is important.

A free learning page for beginners. Practise on a test database, never on real customer data, and check the official documentation for your database version.