add index.js under models to allow require('models') Migrate passport to use orm2