[tor-commits] [pyonionoo/master] Refactor database.py