refactored userDAO to use clazz