Fix db imports
Simplify tests package
Finish basic auth
Add flask toolbar
Linting fixes