Added tPostJob to close db connection