function updateDb($dbConnectionInfo) { $toReturn = false; $updater = new DbUpdater($dbConnectionInfo); $result = $updater->updateDb(); if (!$result['updated']) { echo $result['message']; } else { echo "Compatible database version found."; $toReturn = true; } return $toReturn; }