hwdb: basic editing functionality