Added tPostJob to close db connection

Please needs review