public void updateTimeSpentOnTask(TimeSpentOnTask tsot, Task task) throws SQLException, IOException {
        Connection conn = (Connection) initiateSystemDBConn()[0];

        CallableStatement cs;
        cs = conn.prepareCall("{call updateTimeSpentOnTask(?,?,?,?)}");
        cs.setInt(1, tsot.getTaskID());
        cs.setInt(2, tsot.getUserID());
        cs.setInt(3, tsot.getTimeSpent());
        cs.setString(4, tsot.getComment());
        cs.execute();

        updateTask(task);
    }