Basic search works, working on using cursors