Make far fewer SQL calls on updating points

A minor optimization:

If values do not change for a given type, don't update the database.