text: const {promptUser} = require('./index');
  const express = require('express');
  const mysql = require('mysql2');
  
  const PORT = process.env.PORT || 3001;
  const app = express();
  
  
  // Express middleware
  app.use(express.urlencoded({ extended: false }));
  app.use(express.json());
  
  // Connect to database
  const db = mysql.createConnection(
      {
        host: 'localhost',
        // MySQL username,
        user: 'root',
        password: 'password',
        database: 'department_db'
      },
      console.log(`Connected to the department_db database.`)
    );
    promptUser(db);
    