public List<Batch> getAll() throws ServerException, SQLException {
			ArrayList<Batch> projectList = new ArrayList<Batch>();
			PreparedStatement stmt = null;
	    ResultSet rs = null;
	    try {
	    	String sql = "SELECT * FROM batches";
	    	stmt = db.getConnection().prepareStatement(sql);
	    	
	    	rs = stmt.executeQuery();
	    	while (rs.next()) {
	    		int id = rs.getInt(1);
	    		int projectId = rs.getInt(2);
	    		String file = rs.getString(3);
	    		int accessUserId = rs.getInt(4);
	    		Batch batch = new Batch(id, projectId, file, accessUserId);
	    		projectList.add(batch);
	    	}
	    } catch (SQLException e) {
	    	
	    } finally {
	    	if (rs != null) rs.close();
	    	if (stmt != null) stmt.close();
	    }
			return projectList;
		}