Updated index.php to trigger the query functionality

Basics implemented for display items from a database query.