After drag and drop a node, the 'onDrop' event fires, in which you can save the node sequence to the database.
$('#tt').tree({
onDrop: function(target, source, point){
//the 'point' indicates the drop operation, posible values are: 'append','top' or 'bottom'
}
})