var updater = function() {
mysql.query('SELECT balance FROM Users WHERE id = 5').then(function(balance){
if(balance < 100) {
return;
}
mysql.query('UPDATE Users SET balance = balance - 100 WHERE id = 5').then(function(res){
return;
});
});
}