2 memory models for memdb