fixed error under node 0.6
database save sync mode
Fixed util sort
Added util test