make pie chart change data when database changed