With Sqlite with nodejs you can't take the call execution order equals to the real db execution order of a query. For example in this pseuso-code you cannot predict if will be inserted A before B or viceversa:
function() {
db.run("INSERT A", function() { });
db.run("INSERT B", function() { });
}
But what about the execution order of the callbacks? If the callback of the INSERT A will be called before the callback of INSERT B you can deduce that A will be inserter before B ?