now displaying posts from database on homepage