download data from database and deal with brand