use PDO instead of mysqli
use PDO instead of mysqli cont'd
improved authorization
added server side support for matrix assignment