Moved all sorting and filtering to database query layer. Now never fetching more than MAX_PAGE_VIEWS in a single db-query, and therefor not creating unnecessary java-objects.