How does this work if, for example, you persist the data in a database?