Implemented a simple persistence which works only if node server is up