var
  mongoose = require( 'mongoose' );
  db = mongoose.connection;
 
var
  Packages = db.model( 'Packages', require( './models/packages' ));

Packages.ensureIndexes(function ( err ) {
  console.error(err);
});

module.exports = {
  'Packages' : Packages
};

var
  mongoose = require( 'mongoose' );
  db = mongoose.connection;

var
  Component = db.model( 'Component', require( './models/component' ));

Component.ensureIndexes(function ( err ) {
  console.error(err);
});

module.exports = {
  'Component' : Component
};

Update naming of model Packages to Component
Update naming of model Packages to Component
