network dao refactoring