public static String runCommand(ArrayList l) throws ClassNotFoundException, SQLException, NoSuchAlgorithmException{
        String message = " failed";
        if(l.get(0).equals("login")){
            //action login
            boolean isExist = false;
            isExist = Login.isUserExist(l.get(1).toString(), l.get(2).toString());
            if(isExist){
                message = "login successfull";
            }
            else{
                message = "login failed";
            }
        }
        else if(l.get(0).equals("logout")){
            //action logout
            message = "logout action";
        }
        else if(l.get(0).equals("list")){
            //action list task
            ListTask listTask = new ListTask();
            ArrayList<Task> sesuatucuk = ListTask.getTaskAll(ListTask.getIdUser(l.get(1).toString()));
            String msg = ListTask.convertTaskToString(sesuatucuk);
            message = msg;
        }
        else if(l.get(0).equals("post")){
            //action post changes
            message = "post";
        }
        else if(l.get(0).equals("sync")){
            //action sync task
            message = "sync";
        }
        else if(l.get(0).equals("update")){
            int t = Integer.parseInt(l.get(1).toString());
            ListTask.updateStatus(t, l.get(2).toString());
            message = "update";
        }
        return message;
    }