Modify poem pagination endpoint to take query strings