Add an informal documentation of the SQL schema

Add a short comment to each SQL table, briefly explaining its purpose if only to lower the entry barrier for future developers. This pull also includes some minor changes, most of them purely cosmetic.