Your original point was that we might not need server-side languages or frameworks at all. "The grid" is still a server - it's just not one you control directly. I don't think we'll ever get away from servers because there are definite advantages available by having computation centralized - you can have more powerful hardware available, you don't need to worry about outdated versions of code running, etc.
More broadly, though - there's nothing specific to a language that allows or disallows communication with a database. That's really the realm of a library or a driver to interact with the database (an external service) through some established protocol. People have written databases with JS hooks before, but it's just not common, likely because of the security problem.
Comments
Your original point was that we might not need server-side languages or frameworks at all. "The grid" is still a server - it's just not one you control directly. I don't think we'll ever get away from servers because there are definite advantages available by having computation centralized - you can have more powerful hardware available, you don't need to worry about outdated versions of code running, etc.
More broadly, though - there's nothing specific to a language that allows or disallows communication with a database. That's really the realm of a library or a driver to interact with the database (an external service) through some established protocol. People have written databases with JS hooks before, but it's just not common, likely because of the security problem.