merging common fields in DB