public boolean modifyBookCatalogue(int id, BookCatalogue bc){
        if(id != 0){
            String sql = "update book_catalogue set name=?, description=? where id=?";
            try{
                PreparedStatement ps = con.prepareStatement(sql);
                ps.setString(1, bc.getName());
                ps.setString(2, bc.getDescription());                
                ps.setInt(3, id);
                
                ps.executeUpdate();
                return true;
            }
            catch(SQLException ex){
                System.err.println(ex.getMessage());
                return false;
            }
        }
        else{
            System.err.println("Invalid ID - Not found");
            return false;
        }
    }