added try/catch blocks around update/insert query methods, catch does rollback, if needed