public String ViewMySQLPackets(DatabaseAccess JavaDBAccess) {
        Connection conn = null;
        PreparedStatement ps = null;
        ResultSet rs = null;
        String MySQLPackets = "";

        try {
            if ((conn = JavaDBAccess.setConn()) != null) {
                System.out.println("Connected to database " + JavaDBAccess.getDatabaseName());
            } else {
                throw new Exception("Not connected to database " + JavaDBAccess.getDatabaseName());
            }

            conn.setAutoCommit(false);

            // Start a transaction by inserting a record in the TARGET_PHP_FILES_FUNCTIONS table
            ps = conn.prepareStatement("SELECT ID,THIS_THREAD_ID,PEER_THREAD_ID,PROXY_PACKET,PACKET_TIMESTAMP FROM MYSQL_PROXY_PACKETS");
            rs = ps.executeQuery();

            while (rs.next()) {
                Blob Packet = rs.getBlob("PROXY_PACKET");
                byte[] b;
                char ch;
                b = Packet.getBytes(1, (int) Packet.length());
                ch = (char) b[1];
                for (int i = 1; i <= Packet.length(); i++) {
                    MySQLPackets = MySQLPackets + i + " <-> " + Integer.toHexString(Packet.getBytes(i, 1)[0] & 0xff).toUpperCase() + "\r\n"; // & 0xff is to convert byte to unsigned int
                }
                MySQLPackets = MySQLPackets + "\r\n";
//                System.out.println(MySQLPackets);
            }
            rs.close();
            ps.close();
            conn.commit();
            conn.close();
        } catch (Throwable e) {
            System.out.println("exception thrown:");

            if (e instanceof SQLException) {
                JavaDBAccess.printSQLError((SQLException) e);
            } else {
                e.printStackTrace();
            }
        }
        return MySQLPackets;
    }