update db
write measures rather than parts to conform to relax-ng