This one is much more simple and to the point , without needing sqlite.
https://github.com/curusarn/resh
People may be interested in RESH, I use it and love it.
resh is my favorite
https://github.com/curusarn/resh
I've been using Resh[0] for the past 6 months or so. A rich and queryable shell history is a massive boost in day-to-day productivity. The syncing described here is a pretty cool feature.