Fixed table names for new schema.  Fixed check method for device>endpoint>attribute.