5333 create list of groups, and assign to assigments, and replace mysql with queryDB()