changed the persistence session for db4o and mongodb