general inmemory.db cleanup