await dbConnection.query('SELECT * FROM users WHERE name = ? AND password = ?', [username, password], function(err, results, fields) {
// поможет сократить код, если применять к месту
let [ fromtop, fromright, frombottom, fromleft ] = ( (a,n) => (n = Math.min(...a),a.map(a=>a===n)) )( [1,2,3,4] )