adding data using a loop with sqlite
===

Hi This my THIRD question here.
I have the following table.
I know the answer is simple but.....
       
    |-----|-------|------|------|
    |._id.|..INFO.|.DONE.|.LAST.|
    |..1..|...A...|...Y..|......|
    |..2..|...B...|...Y..|......|
    |..3..|...C...|...Y..|......|
    |..4..|...D...|...Y..|......|
    |..5..|...E...|...Y..|......|
    |..6..|...F...|...Y..|......|
    |-----|-------|------|------|

I would like to repopulate DONE with 'N's, the "N"s will replace the "Y"s.
I use the code: 
  
public void repopwithN()     
{    
    
    long rowcount = DatabaseUtils.queryNumEntries(db,TABLE_NAME);    
    ContentValues values = new ContentValues(); 
 		
    for (int rowID = 0; rowID < rowcount-1; rowID++)         
    {        
      values.put(DONE, "N");          
      db.update(TABLE_NAME, values, _id+"="+ rowID, null);     
    }     
}  
   
    
     
The error I am getting as an out of bounds error. I know it is because the rowID value is wrong. But why?