Pretty much anything that isn't an RPC call "hey compute something" is a database query: "hey, give me some data". This is another field where a general-purpose solution, at least for common cases, would be really super nice.
Part of the problem is that we need authentication and authorization to be part of this or else everyone will reinvent their own way.
Kerberos was supposed to handle this but it seems like nobody cares about that anymore.