add update method in mysql driver class;