public void addRow(Object[] array) {
		//data[rowIndex][columnIndex] = (String) aValue;
			
	    // add row to database
		EntityTransaction userTransaction = manager.getTransaction();  
		userTransaction.begin();
		Files newRecord = fileService.createFile((String) array[0], (String) array[1], (String) array[2], (String) array[3], (String) array[4]);
		userTransaction.commit();
		 
		// set the current row to rowIndex
        fileResultList.add(newRecord);
        int row = fileResultList.size();  
        int col = 0;

        // update the data in the model to the entries in array
         for (Object data : array) {
          	 setValueAt((String) data, row-1, col++);
         }
         
         numrows++;
	}