>>nivert+(OP)
Storing issues in a local SQLite database reminded me of Fossil SCM, which natively supports "tickets" as a source code artifact (and which uses a SQLite database under the hood):
https://fossil-scm.org/home/doc/trunk/www/bugtheory.wiki.