getting content for home page from db