updated todo
made sure to close cursor in both cases (url found and url not found)