This is a pretty cool idea, but as C code it's a little limited.
Both torrent technology and SQLite databases can be used from within Javascript
using Webtorrent https://webtorrent.io/
and SQLite in browser http://kripken.github.io/sql.js/GUI/
You'd need to host your db files on a Webtorrent instead of a normal torrent, but since AFAIK the only difference in the protocol is using websockets instead of sockets, this should be fairly straightforward.
This is a pretty cool idea, but as C code it's a little limited. Both torrent technology and SQLite databases can be used from within Javascript using Webtorrent https://webtorrent.io/ and SQLite in browser http://kripken.github.io/sql.js/GUI/
You'd need to host your db files on a Webtorrent instead of a normal torrent, but since AFAIK the only difference in the protocol is using websockets instead of sockets, this should be fairly straightforward.