src/bundles/Database/Handler.php
public function run( $query, $params = array() )
	{
		$sth = $this->statement( $query, $params );
		
		$type = strtolower( substr( $query, 0, strpos( $query, ' ' ) ) );
	
		switch ( $type ) 
		{
			case 'update':
			case 'delete':
				return $sth->rowCount();
			break;
			
			case 'insert':
				return $this->driver()->connection()->lastInsertId();
			break;
		}
		
		return $sth;
	}
public function run( $query, $params = array() )
	{
		$sth = $this->statement( $query, $params );
		
		$type = strtolower( substr( $query, 0, strpos( $query, ' ' ) ) );
	
		switch ( $type ) 
		{
			case 'update':
			case 'delete':
				return $sth->rowCount();
			break;
			
			case 'insert':
				return $this->driver()->connection()->lastInsertId();
			break;
		}
		
		return $sth;
	}
public function run ( $ query , $ params = array ( ) ) { $ sth = $ this -> statement ( $ query , $ params ) ; $ type = strtolower ( substr ( $ query , 0 , strpos ( $ query , ' ' ) ) ) ; switch ( $ type ) { case 'update' : case 'delete' : return $ sth -> rowCount ( ) ; break ; case 'insert' : return $ this -> driver ( ) -> connection ( ) -> lastInsertId ( ) ; break ; } return $ sth ; }
Run the query and get the correct response

INSERT -> last id
UPDATE -> affected rows
DELETE -> affected rows
etc...

@param string			$query
@param array 			$params
@return array
Run the query and get the correct response