Interesting idea. You mean any app that works with postgress would as well run with a nostr adapter instead? In a way SQL is synchronous and stateless, while NOSTR is asynchronous and stateful, a streaming api subscribing for future updates. Would a SQL query return when the relay sends EOSE?