# Storing data and detecting dangerous contrads for users

**URL:** <https://community.thunkable.com/t/storing-data-and-detecting-dangerous-contrads-for-users/1030176>\
**Category:** Questions about Thunkable X\
**Tags:** database, beginner, help\
**Created:** [December 9, 2020, 10:58am UTC](https://community.thunkable.com/t/storing-data-and-detecting-dangerous-contrads-for-users/1030176 "2020-12-09T10:58:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![17moffor4z2kw](https://avatars.discourse-cdn.com/v4/letter/1/3ab097/32.png) [@17moffor4z2kw](https://community.thunkable.com/u/17moffor4z2kw)\
**Post date:** [December 9, 2020, 10:58am UTC](https://community.thunkable.com/t/storing-data-and-detecting-dangerous-contrads-for-users/1030176/1 "2020-12-09T10:58:09Z")

</div>

Hello, I am a student that needs to create an app that’s dedicated to storing medicinal history for users and analyzing any new medicine inputted to see if they’re contrads or will cause harm to the user. So far I just need to produce a simple:

drug x cannot mix with drug y  
drug y cannot mix with drug z  
drug z cannot mix with drug y

and so on and so forth.

but I am currently stuck on how to go about it. This is my first time using this website so I’m not really sure how it works except for the universal code language it uses.

Here are a couple of questions, I am unable to get an answer through tutorials from:

1. For the initial database (such as storing the data that **drug x cannot mix with drug y** ) should I use a datasource or just a local database

2. When I make individual storage spaces to store medicinal history(like with usernames and paswords), can I still use local storage?

these are just some of the questions I have but I don’t want to overwhelm anyone, I’d appreciate any help at all.

Thank you very much.

---

<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:** [December 9, 2020, 4:06pm UTC](https://community.thunkable.com/t/storing-data-and-detecting-dangerous-contrads-for-users/1030176/2 "2020-12-09T16:06:32Z")

</div>

> [@17moffor4z2kw](#):
>
> - For the initial database (such as storing the data that **drug x cannot mix with drug y** ) should I use a datasource or just a local database

This question is best answered with another question: do you want ALL users to have access to the same data set? If so, then a cloud-based datasource such as Airtable or Google Sheets or Firebase makes sense. But if instead each user needs to be able to update and personalize that data, then you would potentially use a local data source (or if you need the data to be available offline).

> [@17moffor4z2kw](#):
>
> 1. When I make individual storage spaces to store medicinal history(like with usernames and paswords), can I still use local storage?

Yes, you can. Most people, I think, use Firebase for something like that.

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [December 9, 2020, 6:11pm UTC](https://community.thunkable.com/t/storing-data-and-detecting-dangerous-contrads-for-users/1030176/3 "2020-12-09T18:11:38Z")

</div>

As a pharmacist, I think I can see where you are going with your app. Because you will have a lot of relationships in you data (patients, medications, interactions, etc.) JSON objects are going to be the way to go. The thunkable documentation shows Get and Save blocks, but don’t use those. Use cloud variables. Cloud variables work save and read data to the same location as firebase, but are much simpler and reliable. Airtable/google sheets are easier at first, but will quickly turn into a mess and Thunkable breaks google sheets and airtable blocks every few months.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [December 11, 2020, 3:50pm UTC](https://community.thunkable.com/t/storing-data-and-detecting-dangerous-contrads-for-users/1030176/4 "2020-12-11T15:50:16Z")

</div>

A post was split to a new topic: [How do I create an eCommerce app?](https://community.thunkable.com/t/how-do-i-create-an-ecommerce-app/1033159)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [December 11, 2020, 3:54pm UTC](https://community.thunkable.com/t/storing-data-and-detecting-dangerous-contrads-for-users/1030176/5 "2020-12-11T15:54:43Z")

</div>

A post was merged into an existing topic: [Help me to create eCommerce app](https://community.thunkable.com/t/help-me-to-create-ecommerce-app/1031589/11)

---

<div class="post-metadata">

**Author:** ![17moffor4z2kw](https://avatars.discourse-cdn.com/v4/letter/1/3ab097/32.png) [@17moffor4z2kw](https://community.thunkable.com/u/17moffor4z2kw)\
**Post date:** [December 15, 2020, 3:55pm UTC](https://community.thunkable.com/t/storing-data-and-detecting-dangerous-contrads-for-users/1030176/6 "2020-12-15T15:55:09Z")

</div>

Hi sorry for taking so long to respond. The first Database is an Airtable and I appreciate you for that piece advice, it really helped.

I was curious if it was possible to create personal databases for each user(e.g their personal medical history) using variables. I’m not sure how to store it in list form and display, which variable do you recommend I should use: app, stored or cloud.

Thanks you very much.

---

<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:** [December 15, 2020, 4:33pm UTC](https://community.thunkable.com/t/storing-data-and-detecting-dangerous-contrads-for-users/1030176/7 "2020-12-15T16:33:17Z")

</div>

I would trust @drted’s advice and go with JSON/Firebase. In that case, cloud variables are a must.

---

<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:19pm UTC](https://community.thunkable.com/t/storing-data-and-detecting-dangerous-contrads-for-users/1030176/8 "2024-11-08T12:19:44Z")

</div>


