/*
function dumpOption that return a Promise object. This function will be called
if the "-d" option given i command line. Dumping the database into a json file
with the name of the database created.
function dumpOption() {
    return new Promise((resolve, reject) => {
        dumpingDatabase()
            .on('dumpDone', () => {
            resolve();
        })
            .on('dumpFailed', (err) => {
            reject(err);
        });
    });
}