Added cache and Persistent Storage functionality to the DataBaseManager.