I'm also working on a plugin-supported relay implementation https://github.com/CodyTseng/nostr-relay (the plugin system is still in development), and it can replace the database implementation. It's currently being used in my personal relay (wss://nostr-relay.app) and the nostr-relay-tray application. They respectively use PostgreSQL and SQLite as the databases.
