dao refactor into user controller