library/Services/Library/DatabaseHandler.php
public function exec($sql)
    {
        $this->useConfiguredDatabase();
        $success = $this->getDbConnection()->exec($sql);
        $this->checkForDatabaseError($sql, 'exec');
        return $success;
    }
public function exec($sql)
    {
        $this->useConfiguredDatabase();
        $success = $this->getDbConnection()->exec($sql);
        $this->checkForDatabaseError($sql, 'exec');
        return $success;
    }
public function exec ( $ sql ) { $ this -> useConfiguredDatabase ( ) ; $ success = $ this -> getDbConnection ( ) -> exec ( $ sql ) ; $ this -> checkForDatabaseError ( $ sql , 'exec' ) ; return $ success ; }
This function is intended for write access to the database like INSERT, UPDATE

@param string $sql Sql query to execute.

@return int
This function is intended for write access to the database like INSERT UPDATE