persistCachedDatabase is tested and works as before in the non crash case