Major bug fixes

Solved SQL and Null errors. Added further functionality to admins being
able to view and manage their closed issues.