public ArrayList <Vehicle> DBvehicleRouter (Object sysObject, 
             String action){
        
        //local container
        ArrayList <Vehicle> temp;
         
        try{
            if (sysObject instanceof String && "VIEWALL".equals(action)
                    && "MANAGER".equals(sysObject)){   
                temp = queryDB.VehiclesForFranchise(lIO.getfN());
                return temp;
            }
            if (sysObject instanceof Vehicle && "VIEWITEM".equals(action)){    
                temp = queryDB.GetOneVehicle
                        (((Vehicle)sysObject).getVehicleID());
                return temp;
            }               
        }
        catch(UnauthorizedUserException e){
                Vehicle error = new Vehicle("", e.getMessage(), 
                        "", "", "", "", "", "", "", "", "", "" );
                temp = new ArrayList();
                temp.add(error);
                return temp; 
        }
        catch(BadConnectionException e){
                Vehicle error = new Vehicle("", e.getMessage(), 
                        "", "", "", "", "", "", "", "", "", "" );
                temp = new ArrayList();
                temp.add(error);
                return temp;
        }          
        catch(DoubleEntryException e){
                Vehicle error = new Vehicle("", e.getMessage(), 
                        "", "", "", "", "", "", "", "", "", "" );
                temp = new ArrayList();
                temp.add(error);
                return temp;             
        }         
        return null;
     }//end DBvehicleRouter method