* schoolutils/grading/ui.py: change_database: catch db.ConnectionError
* schoolutils/grading/ui.py: BUGFIX: main_loop: call commit() only if db_connection exists