public String getMessage(int iqseq) {
        String msgText = "";
        int msgId = iqseq;
        try {

            PreparedStatement prepStmt = connection.prepareStatement(
                    "select msg_seq, msg_text from hl7_q where msg_seq = ?");

            prepStmt.setInt(1, msgId);

            ResultSet rs = prepStmt.executeQuery();
            // list the results
            while (rs.next()) {
                int msgID = rs.getInt(1);
                msgText = rs.getString(2);
                System.out.println("-------------------------------------------------------");
                System.out.println("Message ID: " + msgID);
                System.out.println("HL7 Message: " + msgText.replaceAll("\r", "\r\n"));
                System.out.println("-------------------------------------------------------");
            }
            msgStr = msgText;
            prepStmt.close();
        } catch (SQLException se) {
            System.out.println("Error in DBLoader.getMessage: " + se);
        }
        return msgStr;
    }