Firebird.attach(options, function(err, db) { if (err) throw err; // db = DATABASE db.transaction(Firebird.ISOLATION_READ_COMMITED, function(err, transaction) { transaction.query('INSERT INTO users VALUE(?,?)', [1, 'Janko'], function(err, result) { if (err) { transaction.rollback(); return; } transaction.commit(function(err) { if (err) transaction.rollback(); else db.detach(); }); }); });});