Eliminate device_metadata table

Eliminate the device_metadata table by moving the data to new columns
in the device table.  Fix up the guest_fqdns query.
Fix initial schema