Delete and batch insert records from EMDR for orders & history