[feat] save nodes' order in db