function alterDatabaseOwner($dbName, $newOwner) { $this->fieldClean($dbName); $this->fieldClean($newOwner); $sql = "ALTER DATABASE \"{$dbName}\" OWNER TO \"{$newOwner}\""; return $this->execute($sql); }