bug fixes dealing with using the wrong parameters and insertion of new tuples when none exists to update.