db: drop wrong constraint if any exists on stats_agg