updated index.php

retrieves content from the database now