private void select(String comm) {//zapytania
        String log = "Select: " + comm;
        
        if(comm == null) {
            logger.log(Level.WARNING, "MySQLHandler: query == null");
            return;
        }
        
        if(st == null) {
            logger.log(Level.WARNING, "MySQLHandler: Statement == null");
            createStatement();
        }
        
        try {
            while (st.isClosed()) {
                logger.log(Level.WARNING, "MySQLHandler: Statement closed");
                createStatement();
            }
        } catch (SQLException ex) {
            logger.log(Level.WARNING, "MySQLHandler: Statement ex: ", ex);
        }
        
        try {
            
            logger.log(Level.INFO, log);
            rs = st.executeQuery(comm);
            rs.beforeFirst();
        } catch (SQLException ex) {
            logger.log(Level.WARNING, comm, ex);
            System.err.println(ex);
        }
    }