Added capability to store cached data in a database.