I recently made a tool for command line history to a sqlite database https://github.com/trengrj/recent.
I really enjoy using sqlite. Not everything needs a client server model, and having your entire database located in a single file makes a lot of things way easier.