Add logging to database.py
Merge pull request #19 from Rosuav/add_logging_to_database

Add logging to database.py