changing code to map to new sql table meru_device instead of meru_controller