SELECT queries fix

Put quotes around all PHP variables in SELECT queries
Replace ? with & in modname (2)

Bugfix include var not reported in staff listing.
Display correct ProgramTitle for TeacherPrograms and Percent.php.
UPDATE/INSERT/DELETE queries fix

Put quotes around all PHP variables in UPDATE/INSERT/DELETE queries