Class connect db