Accessing a Custom Database through SSH Tunnel by using scripts

Okay, I think I understand. You would like to not use Node JS to set up the SSH connection.

A custom DB script must use NodeJS, but you can set up an SSH connection with node.