# Sqlite db not created in ionic

**URL:** <https://forum.ionicframework.com/t/sqlite-db-not-created-in-ionic/100571>\
**Category:** ionic-v3\
**Created:** [August 2, 2017, 10:49am UTC](https://forum.ionicframework.com/t/sqlite-db-not-created-in-ionic/100571 "2017-08-02T10:49:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maya\_17](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@Maya\_17](https://forum.ionicframework.com/u/Maya_17)\
**Post date:** [August 2, 2017, 10:49am UTC](https://forum.ionicframework.com/t/sqlite-db-not-created-in-ionic/100571/1 "2017-08-02T10:49:03Z")

</div>

Hi all,  
I am trying to create a ionic application which will interact with sqlite.  
I followed this video for db interaction [https://www.youtube.com/watch?v=Nn5RQpZBDsg](https://www.youtube.com/watch?v=Nn5RQpZBDsg).  
Application runs without any error. I don’t know whether db has created or not. But console message shows that db created successfully. I can’t see created db in browser console.  
Whenever i tried to retrieve data’s from db. It returns {object Object}.

I have posted my code in Github repository. Please anyone suggest idea why my code doesn’t work.

> **[Nivedha171993/IonicAppDB](https://github.com/Nivedha171993/IonicAppDB)**
>
> IonicAppDB - ionic application with sqlite

My ionic info:  
global packages:

```
@ionic/cli-utils : 1.5.0
Cordova CLI : 7.0.1
Ionic CLI : 3.5.0

```

local packages:

```
@ionic/app-scripts : 2.1.3
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.6.0

```

System:

```
Node : v6.11.1
OS : Windows 8.1
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 3.10.10

```

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![AaronSterling](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@AaronSterling](https://forum.ionicframework.com/u/AaronSterling)\
**Post date:** [August 2, 2017, 12:16pm UTC](https://forum.ionicframework.com/t/sqlite-db-not-created-in-ionic/100571/2 "2017-08-02T12:16:13Z")

</div>

Did you add the sqlite plugin?

---

<div class="post-metadata">

**Author:** ![Maya\_17](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@Maya\_17](https://forum.ionicframework.com/u/Maya_17)\
**Post date:** [August 2, 2017, 12:19pm UTC](https://forum.ionicframework.com/t/sqlite-db-not-created-in-ionic/100571/3 "2017-08-02T12:19:39Z")

</div>

Yes. I have included sqlite plugin.

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/e/c/ec0fb908f9c8a16a414dfb4287280c8dafa96a38.png)

Whenever i tried to access the page, it shows database is already created in console.

---

<div class="post-metadata">

**Author:** ![Maya\_17](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@Maya\_17](https://forum.ionicframework.com/u/Maya_17)\
**Post date:** [August 4, 2017, 5:05am UTC](https://forum.ionicframework.com/t/sqlite-db-not-created-in-ionic/100571/4 "2017-08-04T05:05:45Z")

</div>

Hi all,  
Any update on this issue?. I am stuck in this. Please anyone provide me an solution
