Creating the persistence layer