Finish db