I can't speak to the overall concept, but sqlite3 is bundled on every Mac, and integrates well with Keyboard Maestro (via shell script commands), though it does require some work. I wrote a pretty detailed how-to a few years back:
It walks through setting up a full database, and storing and retrieving values via Keyboard Maestro.