Understanding the persistence layer