public ArrayList<MyFile> retrieveAllFilesInfoAttachedToTaskID(int taskIDParam) throws SQLException, IOException {

        ArrayList<MyFile> fileList = new ArrayList();

        Connection conn = (Connection) initiateFileDBConn()[0];
        CallableStatement cs = null;
        cs = conn.prepareCall("{CALL SP_GetAllFileInfosFromTaskID(?)}");
        cs.setInt(1, taskIDParam);

        ResultSet rs = cs.executeQuery();

        while (rs.next()) {

            MyFile mf = null;

            int ID = rs.getInt(1);
            String filename = rs.getString(2);
            Date date = rs.getDate(3);
            int taskID = rs.getInt(4);

            mf = new MyFile(ID, filename, date, taskID);
            fileList.add(mf);
        }

        return fileList;
    }