I wrote the following on github: https://github.com/slashmais/dbsqlite3
that I use for all my data, maybe you find something useful. This works
very well for me for a while now.
Sorry for the lack of description in readme, I still need to make
time & energy to tidy-up all these projects