-- select id, state, command_line, stdout, stderr from job where tool_id='__EXPORT_HISTORY__' order by id desc; --
The query should actually be:
select id, state, command_line, stdout, stderr from job where tool_id='__IMPORT_HISTORY__' order by id desc;
Thanks, J.