function emailExist(e) { const sqlstmt = "SELECT email FROM somewhere WHERE email = ? LIMIT 1"; db.query(sqlstmt, [e], (err, result) => { //supposed