Updated get new ordes for store function to retrieve orders in the correct foramt