Changed all references in attendance.php to new DB changes