Setting up the persistence layer is now a different method so it can be overwritten