set db finished.