# Firebase DB data being overwritten instead of new record

**URL:** <https://community.thunkable.com/t/firebase-db-data-being-overwritten-instead-of-new-record/736767>\
**Category:** Questions about Thunkable X\
**Created:** [August 12, 2020, 6:02pm UTC](https://community.thunkable.com/t/firebase-db-data-being-overwritten-instead-of-new-record/736767 "2020-08-12T18:02:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamcosolutions](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@jamcosolutions](https://community.thunkable.com/u/jamcosolutions)\
**Post date:** [August 12, 2020, 6:02pm UTC](https://community.thunkable.com/t/firebase-db-data-being-overwritten-instead-of-new-record/736767/1 "2020-08-12T18:02:29Z")

</div>

Hey all,

I’m so out of practice with databases. I am sure this is probably an easy fix, but here is the problem.

1. I am have some data uploaded to my Firebase DB. But when I restart the app and go through the steps again, instead of adding a new record, it’s overwriting the existing one.

2. ALSO, it appears to be updating the LAST submission instead of the current submission - if that makes sense.

For example, I go through the steps and enter ABCD into a field. When I submit it, it doesn’t update the DB. I go through the steps a second time and enter EFGH into the same field. When I submit it, the database is updated with the FIRST entry of ABCD.

Sooooo, where did I go wrong on these two issues? Thanks for your help guys and gals!

Mark

 ![Screenshot 2020-08-12 at 2.00.34 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/a/facd3aa68286869228016ca42b5fee7e0107bffb.png)

---

<div class="post-metadata">

**Author:** ![browncoatjustice52](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/browncoatjustice52/32/71039_2.png) [@browncoatjustice52](https://community.thunkable.com/u/browncoatjustice52)\
**Post date:** [August 13, 2020, 9:48am UTC](https://community.thunkable.com/t/firebase-db-data-being-overwritten-instead-of-new-record/736767/2 "2020-08-13T09:48:39Z")

</div>

Hey @jamcosolutions,  
The thing is that **REAL-TIME DATABASES** just don’t store data for that you need a **CLOUD-FIRESTORE** there are ways you can store multiple units of data…But for now you just need to switch to the **CLOUD-FIRESTORE**

Realtime databases are used in video-conferencing apps because you don’t need to store the video unless you are recording it 🙂

---

<div class="post-metadata">

**Author:** ![jamcosolutions](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@jamcosolutions](https://community.thunkable.com/u/jamcosolutions)\
**Post date:** [August 13, 2020, 12:33pm UTC](https://community.thunkable.com/t/firebase-db-data-being-overwritten-instead-of-new-record/736767/3 "2020-08-13T12:33:55Z")

</div>

Ah! That makes sense. Thank you.

Mark

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:26pm UTC](https://community.thunkable.com/t/firebase-db-data-being-overwritten-instead-of-new-record/736767/4 "2024-11-08T12:26:44Z")

</div>


