changed to in-memory db