Added logic to input server group in the function inputs and added a return message for the number of users.  Fixed a bug that prevented single-day queries