updated condor job
fixed insert queries