Closes GH-311 database.py not using logging facilities