modified the blog page that make it can gain information from database