sensor config: save edited config as xml and in database + set the last one selected as default #94