Finish db cleanup.