Fixed models/index.js to include the models when the connection is open