only do one query for each pagepart type instead of a query per pagepart
Merge pull request #117 from Kunstmaan/fetch_pageparts_performance

only do one query for each pagepart type instead of a query per pagepart