Flatpak sandboxing
Flatpak doesnt by default allow apps to mess with the host system. This is what sandbox is meant to do. But it causes an issue if you want to access unixsocket for your postgres for example.
To fix it, we need to have an override:
flatpak override --user --filesystem=/run/postgresql io.beekeeperstudio.Studio