function Execute($sid, DatabaseHandler $dbHandler, $userId)
{
    $inputData = $_POST;
    try {
        $queryEngine = new QueryEngine();
        $queryEngine->simpleQuery->addSourceDBInfo($sid, $dbHandler->getHost(), $dbHandler->getPort(), $dbHandler->getUser(), $dbHandler->getPassword(), $dbHandler->getDatabase(), $dbHandler->getDriver(), $dbHandler->getIsImpoted(), $dbHandler->getLinkedServerName());
        UtilsForWizard::processDataMatchingUserInputsStoreDB($sid, $inputData["dataMatchingUserInputs"]);
        $queryEngine->simpleQuery->setSourceTypeBySid($sid, 'database');
        $resultJson = new stdClass();
        $resultJson->isSuccessful = true;
        $resultJson->message = 'Success!';
        echo json_encode($resultJson);
        // If a dump file is uploaded, start importing data in the background.
        if (isset($_SESSION["dump_file_{$sid}"])) {
            ExecutionManager::callChildProcessToImportDumpFile($sid, $userId, $dbHandler, $_SESSION["dump_file_{$sid}"]);
        }
        unset($_SESSION["dump_file_{$sid}"]);
    } catch (Exception $e) {
        $resultJson = new stdClass();
        $resultJson->isSuccessful = false;
        $resultJson->message = $e->getMessage();
        echo json_encode($resultJson);
    }
}