Another sql query change.  Remove dev_type