protected function prepareConnection(NodeConnectionInterface $connection)
{
$parameters = $connection->getParameters();
if (isset($parameters->password)) {
$connection->addConnectCommand(new RawCommand('AUTH', array($parameters->password)));
}
if (isset($parameters->database)) {
$connection->addConnectCommand(new RawCommand('SELECT', array($parameters->database)));
}
}