Fixes to update with a collection of orders in database