fixes on pdo port

first testing of PDO port with selenium and several bugs discovered were
fixed:
* Fileupload not working
* Adding messages not working
* Checking of project assignment (chkproject) still using mysql_query
* Installer using mysql_query