Add dev_group to SQL insert
Incorporate some shellcheck suggestions
Multiple changes

Add dev_list group query and sql
Some changes recommended by shellcheck
Changed the output so that it's nicer.