Add paginationationation to db#getSummary.