diff --git a/sql/README.md b/sql/README.md
index e6be6fad0335f28c111dbc806a1cf7319e10c694..232c76334b927e43b5e693018cdf59e97500605c 100644
--- a/sql/README.md
+++ b/sql/README.md
@@ -4,17 +4,17 @@ The _Digest_ is the definitive Roman law compendium compiled under emperor Justi
 
 ### 0. Table of contents
 
-[1. Instructions for using `digest.db`](#)
+[1. Instructions for using `digest.db`](#1-instructions-for-using-digestdb)
 
-[2. Tables of the database](#)
+[2. Tables of the database](#2-tables-of-the-database)
 
-[3. Sample SQL queries](#)
+[3. Sample SQL queries](#3-sample-sql-queries)
 
-[4. Future steps](#)
+[4. Future steps](#4-future-steps)
 
-[5. Support for users](#)
+[5. Support for users](#5-support-for-users)
 
-[6. Footnotes](#)
+[6. Footnotes](#6-footnotes)
 
 ### 1. Instructions for using `digest.db`
 
@@ -38,7 +38,7 @@ The database can be connected directly in a Python script with the `sqlite3` pac
 
 Alternatively, one may export tables and results of `SQL` statements as `csv` flat files which could be loaded as `pandas` dataframes into a Python code for further processing.
 
-[Back to Table of contents](#)
+[Back to Table of contents](#0-table-of-contents)
 
 ### 2. Tables of the database
 
@@ -66,11 +66,11 @@ The "section" table includes the titles of the _Digest_'s 432 thematic sections
 
 The "bko" table presents information related to the theory about the _Digest_'s compositional structure formulated by Friedrich Bluhme in 1820[<sup id="inline8">8</sup>](#fn8) and revised by Paul Krüger for Theodor Mommsen's edition of the _Digest_. The theory was accompanied by a tabular summary known as the Bluhme-Krüger Ordo (hence "bko") which was revised and expanded by Tony Honoré.[<sup id="inline9">9</sup>](#fn9)
 
-[Back to Table of contents](#)
+[Back to Table of contents](#0-table-of-contents)
 
 ### 3. Sample SQL queries
 
-There are some sample queries in the `SQL_queries.txt` file to assist users unfamiliar with the `SQL` query language. These queries are ready to be copy-pasted as a multi-line `SQL` statement into the interface of your choice. The queries can be customised by replacing the relevant values. Names of tables and their columns are fixed, but all other values can be customised. Please play around and [send a message](mailto:m.ribary@surrey.ac.uk) for [support](#head5-2).
+There are some sample queries in the `SQL_queries.txt` file to assist users unfamiliar with the `SQL` query language. These queries are ready to be copy-pasted as a multi-line `SQL` statement into the interface of your choice. The queries can be customised by replacing the relevant values. Names of tables and their columns are fixed, but all other values can be customised. Please play around and [send a message](mailto:m.ribary@surrey.ac.uk) for [support](#52-support-for-sql-queries).
 
 #### 3.1 Example analytical query
 
@@ -119,7 +119,7 @@ ON t.jurist_id = j.id
 WHERE (t.text like '%proprieta%') AND (j.id = 23);
 ```
 
-[Back to Table of contents](#toc)
+[Back to Table of contents](#0-table-of-contents)
 
 ### 4. Future steps
 
@@ -129,7 +129,7 @@ The database is also intended to be enriched with additional features in its tab
 
 Currently there is no custom-made GUI for using `digest.db`. As the project and the database matures, an appropriate user-friendly interface and visualisation tool will be created to open up the database to those less familiar with the `SQL` query language.
 
-[Back to Table of contents](#toc)
+[Back to Table of contents](#0-table-of-contents)
 
 ### 5. Support for users
 
@@ -143,7 +143,7 @@ In time, the database will receive a custom interface which builds on top the `S
 
 Please leave a comment or send an [email](mailto:m.ribary@surrey.ac.uk), if you would like to request a sample `SQL` query for your research, or if you need help with adjusting one of the existing queries. These queries will be continuously added to the `SQL_queries.txt` file.
 
-[Back to Table of contents](#toc)
+[Back to Table of contents](#0-table-of-contents)
 
 ### 6. Footnotes
 
@@ -165,4 +165,4 @@ Please leave a comment or send an [email](mailto:m.ribary@surrey.ac.uk), if you
 
 [<sup id="fn9">9</sup>](#inline9) Tony Honoré, "Justinian's Digest: The distribution of authors and works to the three committees," _Roman Legal Tradition_ 3 (2006): 1-47.
 
-[Back to Table of contents](#)
\ No newline at end of file
+[Back to Table of contents](#0-table-of-contents)
\ No newline at end of file