refactoring getUserData method to use UserDao.
refactoring getUserData method to use UserDao.