move db disconnect