fix the order in which database objects were closed
less debug prints
default settings