I'm really disappointed by Notion, but the database feature is has no competition. Since a long time ago, I've been wishing to use a psql db for note taking, but when needs changes, adding / removing columns or splitting tables would be a huge pain. So there might be industrial tools that makes this process easier, like python easier, just I haven't heard of?
There's free version now for Navicat I noticed yesterday. https://dbeaver.io/download/https://navicat.com/en/download/navicat-premium-lite
In the past I've just used raw psql from the console, but having an IDE is a big quality of life improvement IMO.