add function to clear old articles from db