Adjust the different imports

Use full path imports in app.py
Avoid circular imports between app and dbtools by import app in dbtools
only when needed
Re-order the imports to fix import loop