The database name can be modified/specified by the user using the connectionstring, eg:
```xml
<connectionStrings>
    <add name="RavenWithDefaultDBSet" connectionString="Url = http://localhost:9090; DefaultDatabase=MyDB" />
    <add name="RavenWithDefaultDBSetUsingDataBase" connectionString="Url = http://localhost:9090; Database=MyDB" />
</connectionStrings>
```
So it is not guaranteed that the name is `Configure.EndpointName`!

The solution is to get the name from the store:
```c#
StoreAccessor.Store.DefaultDatabase
```