private void createListTasks(ResultSet result){
        
        try{
            while(result.next()){
                
                Task task = new Task();
                task.setName( result.getString("jmeno") );
                task.setStart( result.getString("cas_startu") );
                task.setEnd( result.getString("cas_konce") );
                task.setTimer();
                tasks = append(tasks, task);
                
            }
         }catch(SQLException se){
            //Handle errors for JDBC
            se.printStackTrace();
        }
    }