implement home page display contents from database, and draft detail page.