Removed deprecated function get_context_instance

Removed the deprecated function get_context_instance() and used
context_course::instance() function instead.
Removed the catching and echoing of exceptions

Removed the catching and echoing of exceptions for database queries from
update_status.php.