connect db global