Clean up sql code
Remove unused sql functions. Make sure queries in `folders` make sense. In fact... `folders` might be a poor name. It might be an idea to move those into the `storage` module and mayble make `folders` just be a data verification module like `users`.
For the functions that remain, expand on their documentation. Is it possible to add documentation to generated types?
issue