Switched to memory db