Having database entity-relationship diagram (w. auto layout) would take Logseq to a different level.
Many of the already-existing tools are open-source and SQL-based which makes adding the feature a tad bit easier I guess.