I am not sure how many writes per second you have on your shell history, but sqlite is not only up to the task, everything else is overkill.
Additionally not having to run a database, but having your history in a file has advantages for that usecase as well.