added friend_count to profile and optimized some methods with queryset