Update write to database for new fields