Added comments to the sql commands in the integrity checks.