fixed issues in UserDAO