Fix Db4oException:
- We cannot query the database for non-stored objects.