add dbhandle and config