capitalizing Stats.actionhandler for consistency's sake
fixing capitalization in pups' stats html table
counting objects on the db level using .count() instead of len()
swapped ambiguous variable names like 'data' with better ones