Update the two tables separately instead of the joined table