New: xml-template to generate select form elements
Codechange: use result arrays from database queries instead duplicating the results into new arrays or variables
Cleanup: code style, makes masking of special chars needless
use xml-template to generate the table for the main board view