New implementation of init method of dao_base easier to use.