Added database connection

Added database connectivity to index.php.