fixed issue with job cancelation and added tables for input and output files for faster queries