hosts#index, find sum in database instead of ruby