public static void changeLendability(BookCopy bc, boolean lendable) {
		
		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 BookCopies set lendable = ? WHERE copy_id = ?");

			stmnt.setBoolean(1, lendable);
			stmnt.setInt(2, bc.getCopyId());

			stmnt.execute();
			conn.commit();
			conn.setAutoCommit(true);

		}catch(SQLException e){
			System.out.println("update fail!! - " + e);
		}
			
	}