title: Sequelize: connect to database on run time based on the request
body: <p>I am working on a node.js app where I need to connect to more than one databases. One of the database is central database which contains information common to all. And then there are country level databases where data is stored according to the countries. </p>
  
  <p>I am using sequelize ORM in the app.<br>
  Database is postgresql.<br>
  Framework is express.</p>
  
  <p>The problem is I want to decide on runtime based on the request which database to use and models should automatically connect to the appropriate database. I have seen <a href="https://stackoverflow.com/questions/30202056/change-database-connection-depending-on-route-in-express-js-with-sequelize">this</a> question but didn't found it helpful.</p>
  
  <p>I have also checked in another forums but didn't find anything.</p>