updated frmMainMenu.btnDbTestSelect_Click

updated to more flexible code using stringbuilder and foreach