Use database instead of data in memory.