caching database fragments instead of pages

* removed caches_page lines from controller
* caching database calls on primary pages