'use strict';
var S = S || {};

S.db = new PouchDB(S.config.db.url, {skipSetup: true});

console.log(S.db);

'use strict';
var S = S || {};

S.config.db._full_url = S.config.db.url.replace(/\/+$/, '')+"/"+S.config.db.name.replace(/^\/+/, '')
S.db = new PouchDB(S.config.db._full_url, {skipSetup: true});

console.log(S.db);

Update sophia.db.js