update fields on database