finish read database