Add CSV logging to DMI fulfillment. Update orders query.