Added cache in front of database.