Keep database changes in memory.