updated closing db connection in fcp;