Second, there are tons of other stuff that we do on the server side besides talking to databases. E.g image processing, task queues, etc.
And lastly, Javascript is not the most elegant of languages. No much benefit of using it in the server side, besides the mythical "so we can share code", as if server and client side do the same stuff (with the exception of input validation).