Index page and article page now use the db class to grab their posts