The index page does not need database access.
Remove all the dao.php references.