add close db connection part