Database:

Connecting to database is optional, but most web applications use it so I will show how to do it. Open /app-name/protected/main.php file. There is an array, where all the configuration is written. You can easily find the database data.