fixed updates / inserts for null values