var orm = require('orm');
var db = orm.connect('sqlite://db.sqlite');

function init(callback) {
    db.sync(callback);
}

module.exports = {
    init: init
};

var orm = require('orm');
var db = orm.connect('sqlite://' + __dirname + '/db.sqlite');

function init(callback) {
    db.sync(callback);
}

module.exports = {
    init: init
};

Use correct directory for sqlite database
Use correct directory for sqlite database
