How to create Database in IonicFramework


I am learning Ionic Framework I want to know how can we create a database to store particular data in schemas.
I have tried the SQLite plugin but it gives lot of trouble always the OpenDataBase undefined error I am sick of that. I followed the steps stated on ng-cordova but its still not working.

Can anyone please suggest any plugin or how to configure the SQLite plugin in Ionic.