added support for getting to next page and previous page. Now we need to figure out how to build a sensible query