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

This new version add a update function for DDL and INSERT, UPDATE, or DELETE queries.
I tested on Cloudera 5.2.