chain_manager implemented

added remove_document to db_cache