input to keep adding number to one field in database

Itai’s answer is pretty much what you want. I just wanted to point that fields in a database collection are accessed by the fieldId and not by position. You don’t add “to the value of the first cell in the data base”. Rather, you set the value of the field with the fieldId (as in Itai’s example) myNumericField .