function addEmployee() {

    inquirer.prompt ([
        {
            type: 'input',
            name: 'first',
            message: "Enter first name."
        },
        {
            type: 'input',
            name: 'last',
            message: "Enter last name."
        },
        {
            type: 'input',
            name: 'role',
            message: "Enter role id."
        },
        {
            type: 'input',
            name: 'manager',
            message: "Enter manager id."
        }
       
    ])
        .then (answer => {
            
            db.query(`insert into employees (first_name, last_name, role_id, manager_id)  values ("${answer.first}", "${answer.last}", ${answer.role}, ${answer.manager})`, function (err, results) {
                
            start();
             
            })

        })
      
        .catch(err => { console.log(err)});

}
// function to add the users selection
function to add the users selection
function to add the users selection
function addEmployee() {
    inquirer.prompt ([
        {
            type: 'input',
            name: 'first',
            message: "Enter first name."
        },
        {
            type: 'input',
            name: 'last',
            message: "Enter last name."
        },
        {
            type: 'input',
            name: 'role',
            message: "Enter role id."
        },
        {
            type: 'input',
            name: 'manager',
            message: "Enter manager id."
        }
    ])
        .then (answer => {
            db.query(`insert into employees (first_name, last_name, role_id, manager_id)  values ("${answer.first}", "${answer.last}", ${answer.role}, ${answer.manager})`, function (err, results) {
            start();
            })
        })
        .catch(err => { console.log(err)});
}
function addEmployee ( ) { inquirer . prompt ( [ { type : 'input' , name : 'first' , message : "Enter first name." } , { type : 'input' , name : 'last' , message : "Enter last name." } , { type : 'input' , name : 'role' , message : "Enter role id." } , { type : 'input' , name : 'manager' , message : "Enter manager id." } ] ) . then ( answer => { db . query ( ` ${ answer . first } ${ answer . last } ${ answer . role } ${ answer . manager } ` , function ( err , results ) { start ( ) ; } ) } ) . catch ( err => { console . log ( err ) } ) ; }
function to add the users selection
function to add the users selection