# Firebase Key value overwritten?

**URL:** <https://community.thunkable.com/t/firebase-key-value-overwritten/1915086>\
**Category:** Questions about Thunkable X\
**Created:** [June 7, 2022, 8:28pm UTC](https://community.thunkable.com/t/firebase-key-value-overwritten/1915086 "2022-06-07T20:28:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.lorentzonsi](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@thomas.lorentzonsi](https://community.thunkable.com/u/thomas.lorentzonsi)\
**Post date:** [June 7, 2022, 8:28pm UTC](https://community.thunkable.com/t/firebase-key-value-overwritten/1915086/1 "2022-06-07T20:28:19Z")

</div>

Hi,

I have created a database in Firebase.

I have followed the Firebase documentation in Thunkable docs. When I press my Button the value is stored from a textbox, but the value is overwritten the next time I press the button. Why isn’t a new row and value added to the database?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 7, 2022, 9:33pm UTC](https://community.thunkable.com/t/firebase-key-value-overwritten/1915086/2 "2022-06-07T21:33:36Z")

</div>

Firebase does not use rows and columns. It uses key:value pairs called nodes. So if you tell Firebase to save something to a certain path such as /Users/bob/note, it will overwrite the existing value each time.

If you want to add values to a path/node, you can do that by replacing the entire object at that node (objects can contain multiple values) or by adding a list item to an existing object.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [September 5, 2022, 9:33pm UTC](https://community.thunkable.com/t/firebase-key-value-overwritten/1915086/3 "2022-09-05T21:33:55Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
