Generate diff SQL from objects