Replace ConnectionManager::getDataSource

Also added error templates to skeleton as without after upgrade errors are thrown:

    Undefined variable $name

or

     Fatal error: [Cake\View\Exception\MissingTemplateException] Template file "Error\error500.ctp" is missing
if the file is missing alltogether

Note that it needs `-o` overwrite param to actually overwrite existing files. So it is fairly harmless.