TODO: insert into execution_history table