exports.database.prototype.get = function (key, callback)
{
  this.db.query("SELECT `value` FROM `store` WHERE  `key` = ?", [key], function(err,results)
  {
    var value = null;
    
    if(!err && results.length == 1)
    {
      value = results[0].value;
    }
  
    callback(err,value);
  });

  this.schedulePing();
}
The software compares two entities in a security-relevant context, but the comparison is incorrect, which may lead to resultant weaknesses.