var config = require('./config');
var pg = require('pg');
pg.types.setTypeParser(20, function(val) {
  //remember: all values returned from the server are either NULL or a string
  return val === null ? null : parseInt(val, 10);
});
var db = require('knex')({
  client: 'pg',
  connection: config.POSTGRES_URL
});
module.exports = db;

@@ -91,17 +91,17 @@
 ion(val)
- 
+%0A
 %7B%0A  //re
@@ -251,16 +251,17 @@
 'knex')(
+%0A
 %7B%0A  clie
@@ -303,16 +303,56 @@
 GRES_URL
+,%0A  pool:%0A  %7B%0A    min: 0,%0A    max: 2%0A  %7D
 %0A%7D);%0Amod

change db pool size