initializing persistence