public BookCategory querry(int id){
		String querry = "select * from bookcategory where id = "+id+";";
		DBManager dbm = null;
		Connection conn= null;
		Statement stmt = null;
		ResultSet rs = null;
		BookCategory  bc = null;
		try{
			dbm = new DBManager();
			bc = new BookCategory();
			conn = dbm.getConnection();
			stmt = conn.createStatement();
			rs = stmt.executeQuery(querry);
			
			while(rs.next()){
				bc.setId(rs.getInt(1));
				bc.setName(rs.getString(2));
			}
		return bc;
		}catch(Exception e){
			e.printStackTrace();
		}finally{
			dbm.closeAll(rs, stmt, conn);
		}
		return bc;
	}