public static void editFine(Fine f){

		try {
			   if(conn == null || conn.isClosed()){
			    conn = DatabaseConnection.getConnection();
			   }
			  } catch (SQLException e1) {
			   // TODO Auto-generated catch block
			   e1.printStackTrace();
			  }

		
		try{
			conn.setAutoCommit(false);
			PreparedStatement stmnt = conn.prepareStatement("UPDATE Fines set transaction_id = ?, member_id = ?, fine_amount = ?, paid = ? WHERE fine_id = ?");
			
			stmnt.setInt(1, f.getTransactionId());
			stmnt.setInt(2, f.getMemberId());
			stmnt.setFloat(3, f.getFineAmount());
			stmnt.setBoolean(4, f.getPaid());
			stmnt.setInt(5, f.getFineId());
			
			stmnt.execute();
			conn.commit();
			conn.setAutoCommit(true);
		
		}
		
		catch(SQLException e){
			System.out.println("update fail!! - " + e);
		}
		

	
		}