Adds a new row with the provided value at the provided index. Returns the identifier of the newly added row.