berkeleyDb inMemory mode

Allow to configure InMemory storage with BerkeleyDb