The database has a lot of information represented in more than one way, for the sake of efficiency. For example it caches the number of answers for each question instead of calculating it every time it's needed. As a result there can be inconsistencies, if a script gets interrupted, or if you do some manual changes to the database. Most of these buttons are for removing these types of inconsistencies, by recalculating these cached values from the original source.