getServerName is not descriptive anymore. Change it to getPrimaryShardIdForDatabase.
This leads to refactoring getServer to getPrimaryShard as well.