Warning about db modification during cursor loop