Added database-connection code in index.php