Emacs with databases without org would be interessing. I now there is sql-mode which supposedly works to connect with an inferior process but a tuorial about that would be nice
https://github.com/emarsden/pgmacs
(self-plug)
M-x sql-sqlite
Then C-c C-c on paragraph you want to send/execute
M-x sql-send- for the other commands
The mode is called sql-interactive-mode
That's it.