title: TypeError: Cannot read property 'openDatabase' of undefined
body: <p>I want to work with sqlite with cordova framework for the first time. As I've read on a tutorial I should use ngcordova like this:</p>
  
  <pre><code>var db = null;
  app.controller('mainCtrl', function ($scope, $ionicSideMenuDelegate) {
      $scope.toggleLeft = function () {
          $ionicSideMenuDelegate.toggleLeft();
      }
      $scope.toggleRight = function () {
          $ionicSideMenuDelegate.toggleRight();
      }
  })
  .controller('home_ctrl', function ($scope, $cordovaSQLite) {
      db = $cordovaSQLite.openDB({name: "my.db"});
          //db = $window.opendb({name: "my.db"});
          $cordovaSQLite.execute(db, "CREATE TABLE IF NOT EXISTS people(id integer primary key, firstname text, lastname text)")
  })
  ;
  </code></pre>
  
  <p>When I run this code an error says:</p>
  
  <pre><code>TypeError: Cannot read property 'openDatabase' of undefined
  </code></pre>
  
  <p>In some articles like this: <a href="https://stackoverflow.com/questions/26101120/how-do-i-use-the-ngcordova-sqlite-service-and-the-cordova-sqliteplugin-with-ioni">How do I use the ngCordova sqlite service and the Cordova-SQLitePlugin with Ionic Framework?</a>
  recommends to use commands like this: <code>ionic start myApp sidemenu</code><br>
  I don't know what is it, I just use cordova command like: <code>cordova run android</code> or <code>cordova create my_project</code><br>
  What should I do to run my create a table from my cordova project?</p>