improved MongoDB implementation, removed settings from ObjectPersistence