Update the user statistics queries to work with the new closes.