needed ID of last edited order as well as new inserted ID