updated example and readme for persistence handler