Added missing db_write_hook in update sales order.