title: Sequelize.define is not a function
body: <p>I've recently started to play around with node.js so i am new to this. I'm getting the following error in my node.js console <a href="https://i.stack.imgur.com/YN0OI.png" rel="nofollow noreferrer">Can't upload images yet apparently because of my rating, please click the link</a></p>
  
  <p>Below is my code. </p>
  
  <pre><code>var Sequelize = require('sequelize');
  
  const dbConfig = new Sequelize('Mike_Test', 'sa', '[DBPASSWORD]', {
  host:'179.27.69.555',
  dialect: 'mssql',
  port: 1433,
    pool: {
      max: 5,
      min: 0,
      idle: 10000
  },
  
  });
  //Model Schhema
  function createDB(){
  var Customer2 = Sequelize.define('Customers2', {
  
  
  Name: {
  Name: Sequelize.STRING, 
  allowNull: false
  },
  Email: {
  Email: Sequelize.STRING,
  allowNull: false 
  }, 
  Phone: {
  Phone: Sequelize.STRING,
  allowNull: false
  },
  Webiste: {
  Webiste: Sequelize.STRING, 
  allowNull: true  
  },
  Message: {
  Message: Sequelize.STRING, 
  allowNull: true 
  },
  createdAt: Sequelize.DATE,
  updatedAt: Sequelize.DATE,
  
  
  
  })
  //Creates DB if it does not exist already.
  Customer2.sync({force:true}).then(function() {
  
  //Add to Cstomers2 Table
  Customer2.create({Name: "Michael Sony", Email: 
  "michael@locationextreme.com", Phone: "01865657000", Website: 
  "https://www.youtbe.com", Message: "Blah Blah Blah!"})
  });
  
  };
  
  createDB();
  </code></pre>
  
  <p>I have connected to a DB [Customers] with the above connection details successfully, but I can't create a new database and write to it [Customers2]</p>
  
  <p><strong>Changed code</strong> </p>
  
  <pre><code>var Sequelize = require('sequelize');
  
  const dbConfig = new Sequelize('Mike_Test', 'sa', 'Georged0g', {
  host:'172.27.60.139',
  dialect: 'mssql',
  port: 1433,
    pool: {
      max: 5,
      min: 0,
      idle: 10000
  },
  
  });
  //Model Schhema
  function createDB(){
  var Customer2 = dbConfig.define('Customers2', {
  
  
  Name: {
  Name: Sequelize.STRING, 
  allowNull: false
  },
  Email: {
  Email: Sequelize.STRING,
  allowNull: false 
  }, 
  Phone: {
  Phone: Sequelize.STRING,
  allowNull: false
  },
  Webiste: {
  Webiste: Sequelize.STRING, 
  allowNull: true  
  },
  Message: {
  Message: Sequelize.STRING, 
  allowNull: true 
  },
  createdAt: Sequelize.DATE,
  updatedAt: Sequelize.DATE,
  
  
  
  })
  //Creates DB if it does not exist already.
  Customer2.sync({force:true}).then(function() {
  
  //Add to Cstomers2 Table
  Customer2.create({Name: "Michael Sony", Email: 
  "michael@locationextreme.com", Phone: "01865657000", Website: 
  "https://www.youtbe.com", Message: "Blah Blah Blah!"})
  });
  
  };
  
  createDB();
  </code></pre>