db: fixed reconnect issue with changing default settings