Finish connect db