Add update function for DDL and INSERT, UPDATE, or DELETE queries