do not query database when offset is more than total in searchPage functions