Add ZigbeeDirect, move sensor metadata to db