text: var mysql = require('mysql2');
  var Client = require('ssh2').Client;
  var ssh = new Client();
  
  var db = new Promise(function (resolve, reject) {
  	ssh.on('ready', function () {
  		ssh.forwardOut(
  			// source address, this can usually be any valid address
  			'127.0.0.1',
  			// source port, this can be any valid port number
  			12345,
  			// destination address (localhost here refers to the SSH server)
  			'127.0.0.1',
  			// destination port
  			3306,
  			function (err, stream) {
  				if (err) throw err; // SSH error: can also send error in promise ex. reject(err)
  				// use `sql` connection as usual
  				connection = mysql.createConnection({
  					host: '127.0.0.1',
  					user: 'login_user',
  					password: '3d#bV90s',
  					database: 'login',
  					stream: stream
  				});
  
  				// send connection back in variable depending on success or not
  				connection.connect(function (err) {
  					if (err) {
  						reject(err);
  					} else {
  						resolve(connection);
  					}
  				});
  			});
  	}).connect({
  		host: '104.219.42.36',
  		port: 22,
  		username: 'root',
  		password: 'Dm2ODJ5RN0'
  	});
  });
  
  module.exports = db;