public function credentials()
{
$conf = \Pimcore\Config::getSystemConfig()->database->params;
$host = $conf->host;
if ($conf->port) {
$host .= ":" . $conf->port;
}
// server, username and password for connecting to database
return [$host, $conf->username, $conf->password];
}