Fixed change_status database connection.
Now the admin ticket page respects all closed statuses
Reports page now honors the database
Now the ticket export honors the database