n.sqlitePlugin is undefined in ionic framework

I am trying to use ionic framework with Sqllite . Here is my app.js code

       var db = null;
angular.module('starter', ['ionic', 'starter.controllers','ngCordova'])

.run(function($ionicPlatform,$cordovaSQLite) {
  $ionicPlatform.ready(function() {
    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if (window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
    }
    if (window.StatusBar) {
      // org.apache.cordova.statusbar required
      StatusBar.styleDefault();
    }
    db = $cordovaSQLite.openDB({ name: "my.db" });
    $cordovaSQLite.execute(db, "CREATE TABLE IF NOT EXISTS people(id interger primary key , firstname text, lastname text)");
  });
})

And my index.html code is here

<script src="lib/ionic/js/ionic.bundle.js"></script>

  <script src="js/ng-cordova.min.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>

when i run following commands

ionic serve

it opens http://localhost:8100/#/login

Now i have two questions

1) it is giving me error

TypeError: n.sqlitePlugin is undefined

2) Where my.db is created. Can i view it physically

Thanks