add dbconnector and test case