Added index.php and view.php for database interaction