Changed the way database stores the data.