add content from database to index page