Atomic function in UserDAO