Add a session column and modify the headers when export - refs BT#7887