tag and results

add the tag column to devices
remove machine_id primary key from results