store all machine data as json string in DB
store regcode in DB if provided