Removed random number generator from query, as the database will take care of assigning a unique user id for us.
Modified comments and removed unnecessary variables.
Moved $infoquery inside the while statement so that it changes with each new user id
Changed UpdateName arguments to be f_name and l_name, from fname and lname respectively, to be consistent with how we've been doing the rest of our arguments.