Added paging and per page options to all queries. #857