Fix #542 and #541. Use Database::getConnectionInfo() in Sql8.php