Generate sql

sql generating updates