appointment search needs to use cursor to retrieve more than 10 items