Add cache clear to database