dao and api init