Count only one of connected brands when calculating the clients base
Fix for brands selection from db
Fixed sales calculation