fixes for sqlitePersistence