private Skill getSkillFromCurrentRow(ResultSet results){
        Integer id = extractNumber(results,"idEntity");
        String valueEntity = extractString(results, "valueEntity");
        Skill s = new Skill(valueEntity,null, null, 0);
        s.setId(id);
        
        //other statement to get all the lines bound to this entity
        ResultSet rs = this.getResultsOfQuery("SELECT * FROM "+megatable+" WHERE idEntity = "+id);
        try {
            while (rs.next())
            {
                String name = extractString(rs, "name");
                String value = extractString(rs , "value");
                if (name.equals("POWER"))
                    s.power = extractDouble(rs, "value");
                if (name.equals("SKILLTYPE"))
                    s.skilltype = value.toUpperCase().equals("SPECIAL") ? SkillType.Special : SkillType.Physical;
                if (name.equals("TYPE"))
                    s.type = value.equals("FIRE") ? Type.Fire : value.equals("WATER") ? Type.Water : Type.Grass;
            }
        } catch (SQLException ex) {
            Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        return s;
    }