I also didn't like the existing notebook implementations. I wanted it to run locally, be based on markdown, specialized for just SQL and be easy to store in git. So I wrote one myself: https://www.timestored.com/sqlnotebook/
It ships as part of qstudio and can connect to 30+ databases.
If you have any feedback please leave it on github, I only released it a few months ago.