public ArrayList<TimeSpentOnTask> initiateTimeSpentOnTaskList(Connection conn) throws SQLException, IOException {
        ArrayList<TimeSpentOnTask> tsotList = new ArrayList();
        int taskID;
        int userID;
        int timeSpent;
        String comment;

        CallableStatement cs = null;
        cs = conn.prepareCall("{call getAllTimeSpentOnTask}");
        ResultSet rs = cs.executeQuery();

        while (rs.next()) {
            taskID = rs.getInt("taskID");
            userID = rs.getInt("userID");
            timeSpent = rs.getInt("timeSpent");
            comment = rs.getString("comment");

            TimeSpentOnTask tsot = new TimeSpentOnTask(taskID, userID, timeSpent, comment);
            tsotList.add(tsot);
        }

        return tsotList;
    }