public String updateQuery(String id, String cellLoc, String cellNum) {
		String query = "UPDATE Prisoner SET ";
		if (notNorE(cellLoc) && notNorE(cellNum)) {
			query += "cellLoc = '" + cellLoc + "' , cellNum = " + cellNum;
		} else if (notNorE(cellNum)) {
			query += "cellNum = " + cellNum;
		} else if (notNorE(cellLoc)) {
			query += "cellLoc = '" + cellLoc + "'";
		}
		query += " WHERE pid = " + id;
		
		try {
			state.executeUpdate(query);
		} catch (SQLException e) {
			return e.getMessage();
		}
		
		return "Updated";
	}