Add a persistence layer.