connect db handler