Created class ArticleFetcher to handle fetching
Updated database.php to use a function to return the database connection
Updated whole project to use ArticleFetcher