Implemented task queries and fixed bug in headerStaff.php