text: // Set up MySQL connection.
  var mysql = require("mysql");
  var connection;
  
  if (process.env.JAWSDB_URL) {
    connection = mysql.createConnection(process.env.JAWSDB_URL);
  } else {
    connection = mysql.createConnection({
      host: 'localhost',
      port: 3306,
      user: process.env.DB_USERNAME,
      password: process.env.DB_PASSWORD,
      database: process.env.DB_NAME
    });
  };
  
  // Export connection for our ORM to use.
  connection.connect();
  module.exports = connection;