refactored out some queries. Added boilerplate for getting review page