Added a new function and corrected existing code

Added the getArticleByDatePublished and corrected errors found in the getMemberByID function. Also added extra comments and adjusted the returns to return the object so that it can be called like: $dbw->getMemberByID->fetchAll();