public List<Field> getAll() throws ServerException, SQLException {
		ArrayList<Field> projectList = new ArrayList<Field>();
		PreparedStatement stmt = null;
    ResultSet rs = null;
    try {
    	String sql = "SELECT * FROM fields";
    	stmt = db.getConnection().prepareStatement(sql);
    	
    	rs = stmt.executeQuery();
    	while (rs.next()) {
    		int id = rs.getInt(1);
    		int projectId = rs.getInt(2);
    		String title = rs.getString(3);
    		int xCoord = rs.getInt(4);
    		int width = rs.getInt(5);
    		String helpHtml = rs.getString(6);
    		String knownData = rs.getString(7);
    		Field recordField = new Field(id, projectId, title, xCoord, width, helpHtml, knownData);
    		projectList.add(recordField);
    	}
    } catch (SQLException e) {
    	
    } finally {
    	if (rs != null) rs.close();
    	if (stmt != null) stmt.close();
    }
		return projectList;
	}