It looks like rga can handle SQLite out of the box, so just making sure your history .db file is visible to rga may be all you need.
You can also use my Datasette tool to get a web UI against your history, see https://docs.datasette.io/en/stable/getting_started.html#usi...