Basic app: DB configuration in separated file

As discussed in https://github.com/yiisoft/yii2/pull/1759#discussion_r8646284.
Actually, in a real app there would be normal having a `db.php.dist` ignored by **CVS** and copy that file for the local configuration.