private static void writeItem( Connection con, PubsubRecordData record ) throws SQLException
    {
        PreparedStatement pstmt = null;
        try
        {
            pstmt = con.prepareStatement("INSERT INTO ofPubsubItem (serviceID,nodeID,id,jid,creationDate,payload) VALUES (?,?,?,?,?,?)");
            pstmt.setString(1, record.serviceID);
            pstmt.setString(2, record.nodeID);
            pstmt.setString(3, record.itemID);
            pstmt.setString(4, record.creator);
            pstmt.setString(5, record.creationDate);
            pstmt.setString(6, record.payload);
            pstmt.executeUpdate();
        }
        finally
        {
            DbConnectionManager.fastcloseStmt( pstmt );
        }
    }
Creates appropriate database entries for each pubsub record
@param newRecords A collection of pubsub representations (can be empty, cannot be null).
xmppserver/src/main/java/org/jivesoftware/database/bugfix/OF1515.java