fixed the groups SQL call to pass in the user-id