Fix data retrieval tool for new t_trigger column