fixed a bug in manageproject.php (caused by switching to pdo)