public void updateBatch(Batch batch) throws SQLException {
			PreparedStatement stmt = null;
		  Statement keyStmt = null;
		  ResultSet keyRS = null;
		  try {
			  String sql = "UPDATE batches SET project_id = ?, image_file = ?, activeUserId = ? where id = ?";
			  stmt = db.getConnection().prepareStatement(sql);
			  stmt.setInt(1, batch.getProjectId());
			  stmt.setString(2, batch.getFile());
			  stmt.setInt(3, batch.getAccessUserId());
			  stmt.setInt(4, batch.getId());
			  if (stmt.executeUpdate() == 1) {
				  System.out.println("SUCCESS");
			  } else {
				  System.out.println("UPDATE failed");
			  }
		  } catch (SQLException e) { e.printStackTrace(); }
		  finally {
			  if (stmt != null) stmt.close();
			  if (keyRS != null) keyRS.close();
			  if (keyStmt != null) keyStmt.close();
		  }
		}