added the counts in the DB