The problem I was having was getting the preview in Xcode to show changes being made to the database. The solution was to add the modelContainer to the Preview itself.
#Preview { ContentView() .modelContainer(for: DataItem.self) }