database settings, closing window