flake8 fixes
sorted impots
some refactoring
why was that ever a class
good riddance to DB class