Revert "closing setting db connection"

This reverts commit 60c8d47c81607c79ab133eddb564c7999ecbbe32.