title: Getting value from a function
body: <p>My code works but not how I would like it to. 
  The output on discord is <code>Your name is undefined</code>. 
  And I would like it to be <code>Your name is Boanak</code>. I need it to be the value that it gets from the table. </p>
  
  <p>I'm orking on a bot on discord where the user has to be registered to use some commands in it. Thanks in advance!</p>
  
  <pre><code>getPlayerid = function(client, message, callback){
  var member = message.member.user;
  var db = new sqlite3.Database('Matches');
  db.serialize(function() {
      db.all(`SELECT Name FROM Users WHERE Nameid =`+member.id, function(err, allRows){
          if(err != null){
              //console.log(err);
              callback(0);
          }
          callback(allRows);
          db.close();
      });
  });
  }
  
  
  z = getPlayerid(client, message, function(data){
  })
  message.channel.send(`Your Name is ${z}`);
  </code></pre>