Thanks it actually works now! :)
if (dbc) dbc.query('SELECT * FROM czas WHERE uid = (?)', Uid, function(err, res) {
if (!res.length) {
dbc.exec('INSERT INTO czas (nick, uid, czas) VALUES (?, ?, ?)', Nick, Uid, Seconds);
engine.log("Inserted");
} else {...