old_contents: const config = {
    default: {
      username: process.env.DB_USERNAME,
      password: process.env.DB_PASSWORD,
      dialect: process.env.DB_DIALECT || 'postgres',
      database: process.env.DB_NAME,
      host: process.env.DB_HOST || '127.0.0.1',
    },
    development: {
      extend: 'default',
      database: 'iic2513template_dev',
    },
    test: {
      extend: 'default',
      database: 'iic2513template_test',
    },
    production: {
      extend: 'default',
      database: 'iic2513template_production',
    },
  };
  
  Object.keys(config).forEach((configKey) => {
    const configValue = config[configKey];
    if (configValue.extend) {
      config[configKey] = Object.assign({}, config[configValue.extend], configValue);
    }
  });
  
  module.exports = config;
  
new_contents: const config = {
    default: {
      username: process.env.DB_USERNAME,
      password: process.env.DB_PASSWORD,
      dialect: process.env.DB_DIALECT || 'postgres',
      database: process.env.DB_NAME,
      host: process.env.DB_HOST || '127.0.0.1',
    },
    development: {
      extend: 'default',
      database: 'wican_dev',
    },
    test: {
      extend: 'default',
      database: 'wican_test',
    },
    production: {
      extend: 'default',
      database: 'wican_production',
    },
  };
  
  Object.keys(config).forEach((configKey) => {
    const configValue = config[configKey];
    if (configValue.extend) {
      config[configKey] = Object.assign({}, config[configValue.extend], configValue);
    }
  });
  
  module.exports = config;
  
subject: Change database name in db config