closing setting db connection