knex query keep asking for sqlite module install
<p>I'm trying to create a query using knex, by using postgres as database. However when I run the code it keep asking</p>

<blockquote>
  <p>Error: Cannot find module 'sqlite3'</p>
</blockquote>

<p>Even though I have added <code>pg</code> to my knexfile.</p>

<p><strong>Query</strong></p>

<pre><code>var data = {
    id: leagueId,
    slug: leagueSlug,
    createdAt: new Date()
};
var query = knex('league').insert(data).toString();
query += ' on duplicate key update ' + knex.raw('createdAt= ?, id = ?',[new Date(), id]);

knex.raw(query);
</code></pre>

<p><strong>knexfile</strong></p>

<pre><code>module.exports = {
  development: {
    client: 'pg',
    connection: {
      user: 'test',
      database: 'test'
    }
  },
  production: {
    client: 'pg',
    connection: process.env.DATABASE_URL
  }
};
</code></pre>

<p><strong>index.js</strong></p>

<pre><code>var express = require('express');
var request = require('request');
var parse = require('body-parser');
var knex = require('knex');
var Log = require('log');
var router = express.Router();
var log = new Log('info');



    /* Retrieve and save leagues*/
    router.get('/api/league', function(req, res, next) {

  /* exclude slugs */
   var excludedSlugs = [ 'eu-cs', 'na-cs', 'iwc', 'all-star'];

   request({
   method: 'GET',
   uri: 'http://test',
   headers: {
     'Content-Type': 'application/json',
     'dataType': 'json'}
 }, function (error, response, body){
   if(!error &amp;&amp; response.statusCode == 200){

     var bodyJSON = JSON.parse(body);
     var leagueObjects = bodyJSON["leagues"];

     for(var objIndex in leagueObjects){
       if (excludedSlugs.indexOf(leagueObjects[objIndex]["slug"]) &gt; -1) {
         /* excluded slugs - do nothing */

        } else {
          var leagueId = leagueObjects[objIndex]["id"];
          var leagueSlug = leagueObjects[objIndex]["slug"];

          var data = {
              id: leagueId,
              slug: leagueSlug,
              name: "lol",
              createdAt: new Date()
          };
          var query = knex('league').insert(data).toString();
          query += ' on duplicate key update ' + 'createdAt= ?, id = ?',[new Date(), leagueId];

          knex.raw(query);


        }
     }


     res.json(leagueObjects);
   } else {
     log.error(error);
   }
 })
});


module.exports = router;
</code></pre>