Use proper logging function in Persistent
Merge branch 'postgres' into sqlite
Fixes after merge