I have a set of SQL Queries which includes insertion to a set of tables and updating another set of tables. The updating part is optional. ie in some cases it should happen