Cleaned up some gratuitous database opens, quietened some debug messages