public Field add(Field field) throws ServerException, SQLException {
	  PreparedStatement stmt = null;
	  Statement keyStmt = null;
	  ResultSet keyRS = null;
	  Field returnField = null;
	  try {
	    String sql = "INSERT INTO fields (project_id, title, xcoord, width, help_html, known_data) VALUES(?, ?, ?, ?, ?, ?)";
	    stmt = db.getConnection().prepareStatement(sql);
	    stmt.setInt(1, field.getProjectId());
	    stmt.setString(2, field.getTitle());
	    stmt.setInt(3, field.getXcoord());
	    stmt.setInt(4, field.getWidth());
	    stmt.setString(5, field.getHtmlHelp());
	    stmt.setString(6, field.getKnownData());
	    if (stmt.executeUpdate() == 1) {
	    	keyStmt = db.getConnection().createStatement();
	    	keyRS = keyStmt.executeQuery("SELECT last_insert_rowid()");
	    	keyRS.next();
	    	int fieldId = keyRS.getInt(1);
	    	returnField = new Field(fieldId, field.getProjectId(), field.getTitle(), field.getXcoord(), 
	    													field.getWidth(), field.getHtmlHelp(), field.getKnownData());
	    } else {
	      System.out.println("Insert user failed");
	    }
	  } catch (SQLException e) {
	    e.printStackTrace();
	  } finally {
	    if (stmt != null) stmt.close();
	    if (keyRS != null) keyRS.close();
	    if (keyStmt != null) keyStmt.close();
	  }
	  return returnField;
	}