Working with persistence layer.