finished dao and basic services